 | EntityManagerRemoveComponent Method |
Removes a component of the passed type from the entity with the specified id.
Namespace: Slash.ECS.ComponentsAssembly: Slash.ECS (in Slash.ECS.dll) Version: 1.0.6018.40178
Syntaxpublic bool RemoveComponent(
int entityId,
Type componentType
)
Public Function RemoveComponent (
entityId As Integer,
componentType As Type
) As Boolean
public:
bool RemoveComponent(
int entityId,
Type^ componentType
)
member RemoveComponent :
entityId : int *
componentType : Type -> bool
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
See Also