Documentation

Unity Engine


Unity Engine


CreateSingletonBuffer<T>(FixedString64Bytes)

Creates and supports only a single entity with a given unmanaged component buffer.
Read time 1 minuteLast updated a day ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public Entity CreateSingletonBuffer<T>(FixedString64Bytes name = default) where T : unmanaged, IBufferElementData

Parameters

The debug friendly name associated with the singleton component buffer entity.

Returns

Type

Description

EntityThe Entity object that you can use to access the singleton component buffer entity.