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

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

 

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