ドキュメント

Unity Engine

Download Unity

Unity Engine

IsBufferEnabled(Entity)

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.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public bool IsBufferEnabled(Entity entity)

Parameters

entity

The entity whose component should be checked.

Returns

Type

Description

boolTrue if the specified component is enabled, or false if it is disabled.

Remarks

Additional Resources: BufferLookup<T>.SetBufferEnabled