Want to Start Writing Code in Unity? Start Here! Unity C# Basics Part 1 - Writing Your First Script




Published: 25 Jan 2022

If you've been using Unity for a while, or are just getting started with Unity and decided it's time for you to start learning how to write code - this is the video you need to start your programming journey!


In this tutorial, aimed at absolute beginners who have very little to no coding experience whatsoever, you'll learn:

⚫ Installing Visual Studio to write code

⚫ What is a "Script"?

⚫ Creating your first Script

⚫ What's going on with the default stuff in your new script?

⚫ A step-by-step breakdown of what each statement is doing, why it's happening, and how it works.

⚫ How to make numbers on the screen count up over time


🚨 Resource to help you, as promised! First link 👉 https://docs.unity3d.com/ScriptReference/Random.html


Full Series Playlist Here: https://www.youtube.com/watch?v=SXaa61JWLDw&list=PLllNmP7eq6TTjwoyfRYAAFOH1sMHVgI1r


⚫ Part 1 - Writing your first script - https://youtu.be/SXaa61JWLDw

⚫ Part 2 - Loops and Arrays - https://youtu.be/MB6B9nHSrps

⚫ Part 3 - Unity Component Lifecycle - https://youtu.be/TD3yoFg3GVI

⚫ Part 4 - Static vs Instances - https://youtu.be/JRRlAzBh-6U

⚫ Part 5 - Delegates - https://youtu.be/1N6k7Hj_JKc

⚫ Part 6 - Inheritance & Interfaces - https://youtu.be/siRvSZzrhRU

⚫ Part 7 - Compositional Relationships - https://youtu.be/khIweJfnyW4


📝📝📝YOUR HOMEWORK!📝📝📝

Create a new script that will show a random number between 0 and 1 and display that on a TextMeshProUGUI component, formatted to 2 decimal places.

Add a comment below with a video showing your code and the end result.


🔶 ALL THINGS LlamAcademy now available at: https://llamacademy.dev/support including latest tutorials, courses, ways to support, and more! Check it out 🙂

👨‍💻 Get the FULL FREE PROJECT on GitHub: https://github.com/llamacademy/unity-csharp-basics-1

🏷️Save 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: https://www.jetbrains.com/store/?section=personal&billing=yearly


📚 For those looking to get ahead of the next video, consider some further reading on resources I brought up during this tutorial 📚

🟠 https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/strings/

🟠 https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/floating-point-numeric-types

🟠 https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/types

🟠 https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/types/classes

🟠 https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/access-modifiers

🟠 https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/attributes/

🟠 https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/statements/selection-statements

🟠 https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings


Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.


Connect on Social Media

Some links may be affiliate links, which at no additional cost to you, gives LlamAcademy a small portion of the purchase.