Click or drag to resize
ComponentManagerGetComponent Method
Gets the component mapped to the entity with the specified id. Note that this manager does not check whether the specified id is valid.

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

Parameters

entityId
Type: SystemInt32
Id of the entity to get the component of.

Return Value

Type: IEntityComponent
The component, if there is one attached to the entity, and null otherwise.
See Also