Unity - Scripting API: GameObject.TryGetComponent

docs.unity3d.com docs.unity3d.com