Synced
GameObject.AddComponent
Section titled “GameObject.AddComponent”
- Creates and attaches a component of the requested type.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Scene
Scope: Runtime
Declaration
Section titled “Declaration”public TComponent InnoEngine.Scene.GameObject.AddComponent<TComponent>() where TComponent : InnoEngine.Scene.GameComponentType parameters
Section titled “Type parameters”Type parameter TComponent: Concrete component type.
Returns
Section titled “Returns”The attached component.