GameObject.Find() 보다 빠르겠다. 태그로 검색하니까.
참고 문서
https://docs.unity3d.com/ScriptReference/GameObject.FindGameObjectsWithTag.html
Unity - Scripting API: GameObject.FindGameObjectsWithTag
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' 카테고리의 다른 글
유니티 인스펙터 상에 보이지 않도록 [HideInInspector] (0) | 2023.02.12 |
---|---|
유니티 플레이어 게임오브젝트에 컴포넌트 붙이기 (0) | 2023.02.12 |
유니티 Billboard Renderer 직접 구현할 필요가 없다 (0) | 2023.02.11 |
유니티 GetChild() vs GameObject.Find() 어느 것이 속도가 빠를까. (0) | 2023.02.11 |
유니티 Camera.main은 캐싱해서 쓰자 (0) | 2023.02.11 |