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