Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Gets the first attached component assignable to the requested type.

API: engine
Project: Inno.Scene

public TComponent Inno.Scene.GameObject.GetComponent<TComponent>() where TComponent : Inno.Scene.GameComponent

Type parameter TComponent: Requested component type.

The first matching component.

Exception T:System.InvalidOperationException: Thrown when no matching component exists.