Synced
GameObject.GetComponent
Section titled “GameObject.GetComponent”
- Gets 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 TComponent Inno.Scene.GameObject.GetComponent<TComponent>() where TComponent : Inno.Scene.GameComponentType parameters
Section titled “Type parameters”Type parameter TComponent: Requested component type.
Returns
Section titled “Returns”The first matching component.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: Thrown when no matching component exists.