Click or drag to resize
EntityManagerRemoveEntity Method

Issues the entity with the specified id for removal at the end of the current tick.

If the entity is inactive, it is removed immediately and no further event is raised.

Namespace: Slash.ECS.Components
Assembly: Slash.ECS (in Slash.ECS.dll) Version: 1.0.6018.40178
Syntax
public void RemoveEntity(
	int entityId
)

Parameters

entityId
Type: SystemInt32
Id of the entity to remove.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionEntity id is negative.
ArgumentOutOfRangeExceptionEntity id has not yet been assigned.
ArgumentExceptionEntity with the specified id has already been removed.
See Also