Spawning Objects in Unity [Using Instantiate]



In this tutorial I explain how to write a C# script that will allow you to spawn obstacles onto your scene using prefabs and instantiate.

In this video I will show you:
1:00 Adding a CircleCollider2D, Rigidbody2D
1:37 Adding a script to move the game objects
3:40 Removing objects from the scene once they leave the screen
5:00 Creating a prefab
5:40 Adding a script to spawn the objects
6:30 Using instantiate
8:25 Using Coroutines and IENumerator

COPY & PASTE SOURCE CODE:
https://pressstart.vip/tutorials/2018/09/25/58/spawning-obstacles.html

MOBILE JOYSTICK VIDEO:
https://pressstart.vip/tutorials/2018/06/22/39/mobile-joystick-in-unity.html

SCREEN BOUNDARIES CODE:
https://pressstart.vip/tutorials/2018/06/28/41/keep-object-in-bounds.html

MORE…

[button color= »black » size= »medium » link= »https://www.youtube.com/watch?v=E7gmylDS1C4″ icon= » » target= »true »]Découvrir l’article original[/button]