unity_找到 Active 为 False 的物体

1、使用 transform.Find("name");

            transform.Find("name");

2、设置 GetComponentInChildren<>(true); 包含 active 为 false 的子物体

            transform.GetComponentInChildren<>(true);//includeInactive

猜你喜欢

转载自blog.csdn.net/ashmoc/article/details/127093984