Documentation

Unity Engine


Unity Engine


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
Warning
Deprecated. Use IsBufferEnabled (RemovedAfter: Entities pre-1.0)
public void IsComponentEnabled(Entity entity)

Parameters

entity

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