Reputation: 2810
looking a method or a Library for something like this:
GameObject nextBrotherNode= gameObject.transform.getNextSibling();
Upvotes: 8
Views: 7643
Reputation: 2383
You mean
int index = transform.GetSiblingIndex();
GameObject nextBrotherNode = transform.parent.GetChild(index + 1).gameObject;
Upvotes: 14