Engine/Unity

유니티 GameObject.FindGameObjectWithTag("Player")

VirtualDever 2023. 2. 11. 21:48

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