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

API: engine
Project: Inno.Scene

public Inno.Scene.GameComponent Inno.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.