IsComponentEnabled<T>(Entity)
Checks whether an enableable component of an entity is enabled.
阅读时间1 分钟最后更新于 1 天前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public static bool IsComponentEnabled<T>(Entity entity) where T : unmanaged, IEnableableComponent
Parameters
The entity.
Returns
Type | Description |
|---|---|
| bool | True if the component is enabled. |