如何实例化一个prefab成为一个gameobject子对象

2025-03-19 18:25:44
推荐回答(1个)
回答(1):

GameObject g=Instantiate(cube)as GameObject;
g.transform.parent=你想成为父物体的对象;