Unity新建子物体时,怎么指定子物体的位置
monster.transform.SetSiblingIndex(0);可以调用这个API,指哪打哪。
public void SetSiblingIndex(int index);
Parameters
index Index to set.
Description
Sets the sibling index.
monster.transform.SetSiblingIndex(0);可以调用这个API,指哪打哪。
index Index to set.
Sets the sibling index.