IgeClass

Method: removeComponent

Removes a component by it's id.
removeComponent (String componentId)
  • StringcomponentId The id of the component to remove.

Remove a component by it's id (namespace)

var entity = new IgeEntity();

// Let's add the velocity component
entity.addComponent(IgeVelocityComponent);

// Now that the component is added, let's remove
// it via it's id ("velocity")
entity.removeComponent('velocity');
© Copyright 2013 Irrelon Software Limited. All Rights Reserved. UK Registered Company Number: 07522767
Isogenic (ī´sōjen´ik): Adj originating from a common source; possessing the same genetic composition.
Strange Things Happen at the One Two Point