- Home /
Question by
Heav3n · Nov 11, 2012 at 02:55 PM ·
prefabdynamicinstantiation
dymanic create object while character approaches
how can i create new object dynamically from a prefab on random positions on x,y axis, while the character approaches?
Comment
http://docs.unity3d.com/Documentation/ScriptReference/Object.Instantiate.html
http://docs.unity3d.com/Documentation/ScriptReference/Random.html
http://docs.unity3d.com/Documentation/ScriptReference/Vector3.Distance.html
That is probably all you need to do this, it shouldn't be too difficult to get started with those refrences.
Scribe
Your answer
