https://docs.unity3d.com/ScriptReference/Object.FindObjectOfType.html
Unity - Scripting API: Object.FindObjectOfType
Object.FindObjectOfType will not return Assets (meshes, textures, prefabs, ...) or inactive objects. It will not return an object that has HideFlags.DontSave set. Please note that this function is very slow. It is not recommended to use this function every
docs.unity3d.com
'Study > 팁' 카테고리의 다른 글
[Tip]룰렛 원하는 곳에 위치 + 텍스트 출력 (0) | 2024.06.29 |
---|---|
[Tip] Mathf.DeltaAngle (0) | 2024.06.29 |
[Tip] RenderSettings (0) | 2024.06.05 |
[팁] Slider.onValueChanged (0) | 2024.06.05 |
[Tip] 3D 프로젝트에서 SpriteAtals 패킹하는 법 (0) | 2024.05.23 |