Synced
GameObject.TryGetComponent
Section titled “GameObject.TryGetComponent”
- Tries to get the first attached component assignable to the requested type.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Scene
Declaration
Section titled “Declaration”public bool Inno.Scene.GameObject.TryGetComponent<TComponent>(out TComponent? component) where TComponent : Inno.Scene.GameComponentType parameters
Section titled “Type parameters”Type parameter TComponent: Requested component type.
Parameters
Section titled “Parameters”Parameter component: Matching component when found.
Returns
Section titled “Returns”true when a matching component exists.