GameObject has AddChild method??

:shock: or has some other method? i want add child gameobject.

Hi, welcome to the forum!

The parent/child hierarchy is managed with the Transform component. You make an object a child of another object by setting the transform.parent of the child object:-

var parentObj: Transform;

childObj.tranform.parent = parentObj;

oh,thanks,i see…