Want to Start Writing Code in Unity? Start Here! Unity C# Basics Part 1 - Writing Your First Script
Автор: LlamAcademy
Загружено: 2022-01-25
Просмотров: 54542
Описание:
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/ScriptRefere...
Full Series Playlist Here: • Want to Start Writing Code in Unity? Start...
⚫ Part 1 - Writing your first script - • Want to Start Writing Code in Unity? Start...
⚫ Part 2 - Loops and Arrays - • Loops and Arrays | Unity C# Basics Part 2 ...
⚫ Part 3 - Unity Component Lifecycle - • MonoBehaviour Lifecycle Basics - Awake On...
⚫ Part 4 - Static vs Instances - • Static vs Instances | Unity C# Basics Part 4
⚫ Part 5 - Delegates - • Delegates in C# for Unity Coding Beginners...
⚫ Part 6 - Inheritance & Interfaces - • Inheritance and Interfaces for Beginners |...
⚫ Part 7 - Compositional Relationships - • Compositional Relationships - You've Alrea...
📝📝📝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.
📚 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/dotn...
⚫ https://docs.microsoft.com/en-us/dotn...
⚫ https://docs.microsoft.com/en-us/dotn...
⚫ https://docs.microsoft.com/en-us/dotn...
⚫ https://docs.microsoft.com/en-us/dotn...
⚫ https://docs.microsoft.com/en-us/dotn...
⚫ https://docs.microsoft.com/en-us/dotn...
⚫ https://docs.microsoft.com/en-us/dotn...
👨💻As always, all code from this video is available on GitHub: https://github.com/llamacademy/unity-...
🏷️Save 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: https://www.jetbrains.com/store/?sect...
🧡 Believe in LlamAcademy's mission and have received value from the videos? Here's how you can show your support:
🌟 Patreon: / llamacademy
🌟 YouTube Member: / @llamacademy or click the Join button on any video
📚 Take my Unity ShaderGraph Course:
https://www.gamedev.tv/p/unity-shader...
👕 Get yourself some LlamAcademy merch: https://llamacademy.myspreadshop.com/
💸 Use my Affiliate Link for Humble Bundles https://humblebundleinc.sjv.io/9g4ak4
💸 Publisher Sale! 50% OFF an entire publisher's Assets! Publisher changes weekly! https://assetstore.unity.com/publishe... (affiliate)
💸 Save up to 50% on NEW Assets: https://assetstore.unity.com/?new_sal... (affiliate)
Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.
Chapters:
00:00 What to Expect
02:52 Ensuring You Have the Right Tools
04:05 Setting Up the Scene
04:36 Creating a Script
05:34 First Look at Code - "using" Statements
06:23 The Class
07:30 Functions/Methods
09:11 Class Member Variable Definitions
16:20 The "if" Statement
17:35 Assigning a New Value to a Variable
20:50 Accessing Variables, Properties, and Functions on Another Class
21:53 Calling a Function
23:00 Converting Float Type to String Types
24:45 Formatting a "Number" for Display
25:58 Adding Your Custom Script to a GameObject
26:24 Demo
27:00 Closing Thoughts and Homework
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: