Get Next Sibling gameobject(transform) Method in unity3d C#
问题 looking a method or a Library for something like this: GameObject nextBrotherNode= gameObject.transform.getNextSibling(); 回答1: You mean int index = transform.GetSiblingIndex(); GameObject nextBrotherNode = transform.parent.GetChild(index + 1).gameObject; 来源: https://stackoverflow.com/questions/27388030/get-next-sibling-gameobjecttransform-method-in-unity3d-c-sharp