文档

Unity Engine

Download Unity

Unity Engine

HasBuffer<T>(Entity)

Checks whether an entity has a dynamic buffer of a specific IBufferElementData type.
阅读时间1 分钟最后更新于 19 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public bool HasBuffer<T>(Entity entity) where T : struct, IBufferElementData

Parameters

entity

The Entity object.

Returns

Type

Description

boolTrue, if the specified entity has a dynamic buffer of IBufferElementData type.

Remarks

Always returns false for an entity that has been destroyed.