When I use Instantiate() to create an object,the object always create in the “root”,
like : Image1
but I want these objects in one Father Object,like: Image2
How Can I do that?Thanks…
When I use Instantiate() to create an object,the object always create in the “root”,
like : Image1
but I want these objects in one Father Object,like: Image2
How Can I do that?Thanks…
var parent : Transform;
function Start(){
var clone : GameObject = Instantiate( gameObject );
clone.transform.parent = parent;
}