|
I have a foreach loop that instantiates a tile in a random range Vector3. When I instantiate the object it is inside the other ones and it flickers and causes massive lag. How do I make it not instantiate the object there again if its already there?
(comments are locked)
|
|
@SYNYST3R1 : hey its very simple to make don't get tense. just changing the position of instantiated objects in vector3. here is sample : it'll instantiate every object 2 units apart from x axis. Refer this: http://unity3d.com/support/documentation/ScriptReference/Object.Instantiate.html Thank you, I was using a Random.range for the Vector3 but this will work a lot better thanks!
Aug 23 '11 at 07:08 PM
SYNYST3R1
(comments are locked)
|
