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