Synced
GameObject.RemoveComponent
Section titled “GameObject.RemoveComponent”
- Removes and destroys a specific attached component.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Scene
Scope: Runtime
Declaration
Section titled “Declaration”public bool InnoEngine.Scene.GameObject.RemoveComponent(InnoEngine.Scene.GameComponent component)Parameters
Section titled “Parameters”Parameter component: GameComponent instance to remove.
Returns
Section titled “Returns”true when the component was attached and removed.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: Thrown when attempting to remove the mandatory transform.