 | 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.ComponentsAssembly: Slash.ECS (in Slash.ECS.dll) Version: 1.0.6018.40178
Syntaxpublic IEntityComponent GetComponent(
int entityId
)
Public Function GetComponent (
entityId As Integer
) As IEntityComponent
public:
IEntityComponent^ GetComponent(
int entityId
)
member GetComponent :
entityId : int -> IEntityComponent
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