remove

inline fun <T : Component> remove(): Boolean

Removes a component of type T from this entity.

Return

Whether the component was present before removal.


fun remove(kClass: KClass<*>): Boolean

Removes a component whose class is kClass from this entity.


fun remove(component: ComponentId): Boolean

Removes a component with id component from this entity.