- Home /
Question by
Matthew Pattel · Aug 16, 2013 at 12:55 AM ·
objectrandomspawn
how do i make an object spawn randomly in an area?
i am creating a game that requires an object to be randomly in an area(somewhere that changes every time someone plays) and i need a script that will do this for me plz help.
Comment
Best Answer
Answer by DaveA · Aug 16, 2013 at 12:58 AM
Instantiate (prefab, Vector3(Random.insideUnitSphere), Quaternion.identity);
Should get you started