+ 2

How do you add a object in unity using the classes of c#

by using monodeveloper in unity engine

24th Mar 2018, 6:40 PM
Parthasarathy
Parthasarathy - avatar
2 Respostas
+ 1
You could Instantiate() look on unity documentation or YouTube for more info
25th Mar 2018, 1:01 AM
Ariela
Ariela - avatar
0
Make a script and put this in it. public GameObject yourObject; private Vector3 spot; void start(){ spot= new Vector3(0,0,0); Instantiate(thing, spot, transform.rotation } Save your script and put it on an object in your scene. In the inspector for that object the script has a space for you to place the pre-fab you would like to add to the scene. Drag and drop.
19th May 2020, 10:32 PM
LordHill
LordHill - avatar