#unity #unityTutorial #learnUnity #UnityCompleteGame
Download Unity: https://unity.com/download
If you’re new to Unity, this tutorial should help you learn how spawn objects into your game using C# code. In the last video, we wrote a script that let us move all our pipes towards the player. Now, let’s take our game 1 step further and create infinite levels by dynamically spawning in all our pipes.
📺 All Tutorial Parts
Part 0 | Unity Setup: • Unity Beginner Tutorial - Part 0: Ins...
Part 1 | 3D Objects: • Unity Beginner Tutorial - Part 1: 3D ...
Part 2 | Coding in C#: • Unity Beginner Tutorial - Part 2: Cod...
Part 2.5 | Movement: • Unity Beginner Tutorial - Part 2.5: M...
Part 3 | Spawning: Current Video!
Part 4 | Collisions: • Unity Beginner Tutorial - Part 4: Col...
Part 5 | Scoring: • Unity Beginner Tutorial - Part 5: UI ...
Part 6 | Game Over: • Unity Beginner Tutorial - Part 6: Gam...
📁 Project Files: https://bit.ly/3btvrha
🎮 Games We Made: https://tutmo.itch.io/
❤️ Subscribe: https://bit.ly/2XOcUXm
😎 Join the Discussion!
● Discord: / discord
● Twitter: / tutmoyt
● Instagram: / tutmobuffet
Video Content
0:00 - Intro
0:17 - Creating a New C# Script
1:01 - Creating a Prefab
2:16 - Creating a Method
2:58 - Calling a Method
3:56 - Do Something Every X Seconds
6:11 - Spawn Something (Instantiate)
8:39 - Set a Spawn Point
13:05 - Set Random Height (float Random.Range)
16:00 - Set Random Direction (int Rangom.Range)
20:01 - Create an IF, ELSE Statement
21:29 - Final Result
21:41 - Next Video Summary