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

API: scripting
Project: Inno.Scene
Scope: Runtime

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

Type parameter TComponent: Requested component type.

The first matching component.

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