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

API: scripting
Project: Inno.Scene
Scope: Runtime

public InnoEngine.Scene.GameComponent InnoEngine.Scene.GameObject.GetComponent(System.Type componentType)

Parameter componentType: Requested component type.

The first matching component.

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