Click or drag to resize
EntityManagerRemoveComponent Method
Removes a component of the passed type from the entity with the specified id.

Namespace: Slash.ECS.Components
Assembly: Slash.ECS (in Slash.ECS.dll) Version: 1.0.6018.40178
Syntax
public bool RemoveComponent(
	int entityId,
	Type componentType
)

Parameters

entityId
Type: SystemInt32
Id of the entity to remove the component from.
componentType
Type: SystemType
Type of the component to remove.

Return Value

Type: Boolean
Whether a component has been removed, or not.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionEntity id is negative.
ArgumentOutOfRangeExceptionEntity id has not yet been assigned.
ArgumentExceptionEntity with the specified id has already been removed.
ArgumentNullExceptionPassed component type is null.
ArgumentExceptionA component of the passed type has never been added before.
See Also