Method SetEnabled
SetEnabled(Entity, bool)
Declaration
public void SetEnabled(Entity entity, bool enabled)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The entity to enable or disable |
bool | enabled | True if the entity should be enabled |
Remarks
Entities with the Disabled component are not matched by any Entity
If the entity was converted from a prefab and thus has a Linked
This operation requires a structural change to add or remove the Disabled component. To enable or disable individual components
without requiring a structural change, see IEnableable
Exceptions
Type | Condition |
---|---|
Argument |
The Entity does not exist. |