Method IsEnabled
IsEnabled(Entity)
Check whether an entire entity has the Disabled tag component.
Declaration
public bool IsEnabled(Entity entity)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The entity to check |
Returns
Type | Description |
---|---|
bool | True if the target entity does not have Disabled tag component, or false if it does. |
Remarks
Entities with the Disabled component are not matched by any EntityQuery, and are therefore not processed by systems. To override this behavior for a specific query, use EntityQueryOptions.IncludeDisabledEntities at query creation time.