Learning C# and Unity. See your code in action
Tags: csharp
Published: 2020-09-08 02:34:57

One of the things I love about game dev is seeing your code in action. Literally! You can program something and see the output of it almost immediately.

Recently, I started learning C# through Unity. There's a few reasons for this. Firstly, it's really easy to see what's happening with the code. You program something, write it up, and hit play. You can easily see what's happening on the screen. Whether it's a box, a character, a ball of fire, or all the above, you can see your code in action. This is one of the primary reasons for choosing Unity.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/sy4wntjnbsng5mrpgi8g.jpg)

Next, I'm a bit of a gamer... if you hadn't worked that out already. When working in Unity I like thinking about the code I'm writing and how it applies to the game world. When I was building the weapons inventory, I used the items from my time playing *Elder Scrolls Online*. This just makes learning way more fun.

Finally, I wanted to learn to use the Unity Game Engine itself. It's a really fun way to integrate programming and design elements. I'm a bit of a PhotoShop buff so I love applying the knowledge from design into Unity. Overall, this is a pretty sweet way to learn C#. If you're thinking of learning C#, Unity is a great way to go.

## Learning online with Unity

Okay, so how do you learn Unity online? I've been working through the Unity Courses on [Unity Premium](https://unity.com/products/unity-learn). This was available for free during the COVID period but has now jumped back up to a subscription. If you're a student however, you can get Unity Premium through GitHub. Simply sign up to the [Student Developer Pack](https://education.github.com/pack) and you'll get access to Unity Premium. This means free Unity Pro - yay, dark theme - and access to all the Premium learning content.

The course I did was the [C# Survival Guide](https://learn.unity.com/course/unity-c-survival-guide?_ga=2.173013731.1952838222.1599531729-1546188792.1599531729). It's pretty good, but a lot of the concepts aren't fully explained. If I wasn't doing this live on my [Twitch channel](https://twitch.tv/MishManners) then I'd be so lost. Luckily lots of talented devs dropped in to saved me!

A couple of these lovely souls also recommended the [Unity Beginner Tutorials](https://www.youtube.com/watch?list=PLPV2KyIb3jR5QFsefuO2RlAgWEz6EvVi6&v=j48LtUkZRjU&feature=emb_title) on YouTube.

{% youtube j48LtUkZRjU %}

This guy is great at explaining the basic concepts and getting you up to speed with C#. Both these resources are good places to start. Essentially, you just need to start! If you want to learn some C# or Unity, give it a shot.

## Join me

If you ever want some inspiration, feel free to join me on my [Twitch channel](https://twitch.tv/MishManners). There's a whole lot of live coding happening and plenty of banter. Drop in and say hi, learn with me, or just hang out with like minded people. It's being around other driven individuals that makes people feel motivated to learn. So why not come join with us, or share your learning experiences in the comments below.

Check out some of the code I was using over on my [GitHub repo](https://github.com/MishManners/Unity-Project) and good luck with your C# journey. Happy coding.