Documentation

Unity Engine


Unity Engine


EntityCommandBuffer

Creates a new command buffer.
Read time 1 minuteLast updated a day ago

Definition

  • Type: Constructor
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

EntityCommandBuffer(AllocatorHandle)

Creates a new command buffer.
public EntityCommandBuffer(AllocatorManager.AllocatorHandle allocator)

Parameters

Memory allocator to use for chunks and data

EntityCommandBuffer(Allocator, PlaybackPolicy)

Creates a new command buffer.
Warning
Removed. Creating an ECB with a PlaybackPolicy is obsolete. This will be removed in a future version.
public EntityCommandBuffer(Allocator label, PlaybackPolicy playbackPolicy)

Parameters

Memory allocator to use for chunks and data

playbackPolicy

Specifies if the EntityCommandBuffer can be played a single time or more than once.

EntityCommandBuffer(AllocatorHandle, PlaybackPolicy)

Creates a new command buffer.
Warning
Removed. Creating an ECB with a PlaybackPolicy is obsolete. This will be removed in a future version.
public EntityCommandBuffer(AllocatorManager.AllocatorHandle allocator, PlaybackPolicy playbackPolicy)

Parameters

Memory allocator to use for chunks and data

playbackPolicy

Specifies if the EntityCommandBuffer can be played a single time or more than once.