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.
转载于:https://www.cnblogs.com/yixuan1980/p/Unity.html