Unity 判断当前物体为第几个子物体

print(transform.GetSiblingIndex());//显示当前物体为第几个子物体

 

posted @ 2022-06-22 18:05  哒哒哒~~~  阅读(119)  评论(0编辑  收藏  举报