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

API: scripting
Project: Inno.Scene
Scope: Runtime

public bool InnoEngine.Scene.GameObject.TryGetComponent<TComponent>(out TComponent? component) where TComponent : InnoEngine.Scene.GameComponent

Type parameter TComponent: Requested component type.

Parameter component: Matching component when found.

true when a matching component exists.