| Parameter | Description |
|---|---|
| entity | The entity whose component should be checked. |
bool True if the specified component is enabled, or false if it is disabled.
Checks whether the IComponentData of type T is enabled on the specified Entity. For the purposes of EntityQuery matching, an entity with a disabled component will behave as if it does not have that component. The type T must implement the IEnableableComponent interface.
Additional resources: ComponentLookup<T0>.SetComponentEnabled
| Parameter | Description |
|---|---|
| systemHandle | The system whose component should be checked. |
bool True if the specified component is enabled, or false if it is disabled.
Checks whether the IComponentData of type T is enabled on the specified system using a SystemHandle. For the purposes of EntityQuery matching, a system with a disabled component will behave as if it does not have that component. The type T must implement the IEnableableComponent interface.
Additional resources: ComponentLookup<T0>.SetComponentEnabled