remove

inline fun <T : Component> Entity.remove(): Component?

Removes the specified Component from the Entity.

Return

the removed Component instance (if was present and matched the specified type) or null.

Parameters

T

the Component type to remove.

See also

Entity.remove