RemoveComponentAction - acrimi/Raven GitHub Wiki
Extends ComponentAction
RemoveComponentAction
is an implementation of ComponentAction that removes one or more components from an entity. Each component will be completely removed from the entity and recycled, regardless of whether it is in an attached or detached state. If any of the components are not present on the entity, the action will have no effect for that component.
The following parameters can be used to configure the action's behavior:
Key | Type | Description |
---|---|---|
components* | string[] | Array of all components to be processed by the action. Must be the full name of the component class. |
component* | string | The full name of single component class to be processed by the action. Ignored if components is defined. |
* from ComponentAction
Examples:
"eventName": {
"action": "RemoveComponentAction",
"components": [
"HitBoxComponent",
"CollisionComponent"
]
}
"eventName": {
"action": "RemoveComponentAction",
"component": "PhysicsComponent"
}