IsComponentEnabled(Entity)
Obsolete. Use BufferLookup<T>.IsBufferEnabled instead.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public void IsComponentEnabled(Entity entity)
Parameters
The entity whose component should be checked.
Remarks
Obsolete. Use BufferLookup<T>.IsBufferEnabled instead.
Checks whether the IBufferElementData 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: BufferLookup<T>.SetBufferEnabled