Synced
GameObject.RemoveComponent
Section titled “GameObject.RemoveComponent”
- Removes and destroys a specific attached component.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Scene
Declaration
Section titled “Declaration”public bool Inno.Scene.GameObject.RemoveComponent(Inno.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.