Entity.remove

Remove a component from the entity.

  1. Object remove()
    class Entity
    Object
    remove
    (
    T
    )
    ()
  2. Object remove(ClassInfo class_a)

Parameters

T

The class of the component to be removed.

Return Value

Type: Object

the component, or null if the component doesn't exist in the entity

Meta