在unity3d C#中获取下一个同级gameobject(transform)方法

亚历克斯

在方法或库中查找类似这样的内容:

GameObject nextBrotherNode= gameObject.transform.getNextSibling();
本杰明·詹姆斯·德鲁里

你的意思是

int index = transform.GetSiblingIndex();
GameObject nextBrotherNode = transform.parent.GetChild(index + 1).gameObject;

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章