Synced
GameObject.AddComponent
Section titled “GameObject.AddComponent”
- Creates and attaches a component of the requested runtime type.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Scene
Scope: Runtime
Declaration
Section titled “Declaration”public InnoEngine.Scene.GameComponent InnoEngine.Scene.GameObject.AddComponent(System.Type componentType)Parameters
Section titled “Parameters”Parameter componentType: Concrete component type.
Returns
Section titled “Returns”The attached component.