GetComponentsInChildren() 할 때 파라미터로 includeInactive를 true로 설정하면 비활성화된 children 배열을 가져올 수 있다.
비활성화 된 게임오브젝트의 컴포넌트를 가져오는 방법은 이 방법 밖에 없는 것으로 보인다.
- 출처 : Unity - Scripting API: Component.GetComponentsInChildren (unity3d.com)
Unity - Scripting API: Component.GetComponentsInChildren
Success! Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable. Close
docs.unity3d.com
'Engine > Unity' 카테고리의 다른 글
[Unity TIL] transform.Find("Child/ChildOfChild") 성능 (0) | 2022.03.27 |
---|---|
[TIL] MonoBehaviour.StopCoroutine() 주의사항 한 가지 (0) | 2022.03.22 |
Game 윈도우의 Stats 설명 (0) | 2022.02.20 |
#region으로 긴 코드를 관리하자 (0) | 2022.02.20 |
Layout 저장 (0) | 2022.02.20 |