Synced
GameObject.GetComponent
Section titled “GameObject.GetComponent”
- Gets the first attached component assignable to a runtime type.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Scene
Declaration
Section titled “Declaration”public Inno.Scene.GameComponent Inno.Scene.GameObject.GetComponent(System.Type componentType)Parameters
Section titled “Parameters”Parameter componentType: 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.