Documentation

Unity Engine

Download Unity

Unity Engine

HasBuffer<T>(Entity)

Checks whether an entity has a dynamic buffer of a specific type.
Read time 1 minuteLast updated a day ago

Definition

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

Parameters

entity

The entity.

Returns

Type

Description

boolTrue if the entity exists and has the buffer.