 | ComponentManagerRemoveComponent Method (Int32, IEntityComponent) |
Removes 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 bool RemoveComponent(
int entityId,
out IEntityComponent component
)
Public Function RemoveComponent (
entityId As Integer,
<OutAttribute> ByRef component As IEntityComponent
) As Boolean
public:
bool RemoveComponent(
int entityId,
[OutAttribute] IEntityComponent^% component
)
member RemoveComponent :
entityId : int *
component : IEntityComponent byref -> bool
Parameters
- entityId
- Type: SystemInt32
Id of the entity to remove the component from.
- component
- Type: Slash.ECS.ComponentsIEntityComponent
Removed component.
Return Value
Type:
Boolean
Whether a component has been removed, or not.
See Also