IsComponentEnabled
Checks whether an enableable component of an entity is enabled.
読み終わるまでの所要時間 1 分最終更新 2日前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
IsComponentEnabled<T>(Entity)
Checks whether an enableable component of an entity is enabled.
public static bool IsComponentEnabled<T>(Entity entity) where T : unmanaged, IEnableableComponent
Parameters
The entity.
Returns
Type | Description |
|---|---|
| bool | True if the component is enabled. |
IsComponentEnabled(Entity, ComponentType)
Checks whether an enableable component of an entity is enabled.
public static bool IsComponentEnabled(Entity entity, ComponentType type)
Parameters
Returns
Type | Description |
|---|---|
| bool | True if the component is enabled. |