Struct EntityCommandBuffer
A thread-safe command buffer that can buffer commands that affect entities and components for later playback.
Namespace: Unity.Entities
Assembly: Unity.Entities.dll
Syntax
[NativeContainer]
public struct EntityCommandBuffer
Constructors
Name | Description |
---|---|
Entity |
Creates a new command buffer. |
Entity |
Creates a new command buffer. |
Entity |
Creates a new command buffer. |
Properties
Name | Description |
---|---|
Is |
Is true if the Entity |
Is |
Returns true if the Entity |
Minimum |
Allows controlling the size of chunks allocated from the temp job allocator to back the command buffer. |
PLAYBACK_WITH_TRACE | A static field for logging details during EntityCommandBuffer playback. When set to true, each EntityCommandBuffer will log its commands as they are processed during playback. |
Should |
Controls whether this command buffer should play back. |
Methods
Name | Description |
---|---|
Add |
Records a command to add a dynamic buffer to an entity. |
Add |
Records a command to add a component to a NativeArray of entities. |
Add |
Records a command to add one or more components to a NativeArray of entities. |
Add |
Records a command to add a component to an entity. |
Add |
Records a command to add one or more components to an entity. |
Add |
Obsolete. Use Add |
Add |
Records a command to add a component to all entities matching a query. |
Add |
Obsolete. Use AddComponent(EntityQuery,ComponentTypeSet,EntityQueryCaptureMode) instead. |
Add |
Records a command to add multiple components to all entities matching a query. |
Add |
Obsolete. Use Add |
Add |
Obsolete. Use AddComponent(EntityQuery,ComponentTypeSet,EntityQueryCaptureMode) instead. |
Add |
Obsolete. Use Add |
Add |
Obsolete. Use Add |
Add |
Records a command that adds a component to an entity's Linked |
Add |
Records a command that adds a component to an entity's Linked |
Add |
Records a command to add a hybrid component and set its value for all entities matching a query. |
Add |
Obsolete. Use Add |
Add |
Records a command to add component of type T to a NativeArray of entities. |
Add |
Records a command to add component of type T to a NativeArray of entities. |
Add |
Records a command to add component of type T to an entity. |
Add |
Records a command to add component of type T to an entity. |
Add |
Obsolete. Use Add |
Add |
Records a command to add a component to all entities matching a query. |
Add |
Records a command to add a component to all entities matching a query. Also sets the value of this new component on all the matching entities. |
Add |
Obsolete. Use Add |
Add |
Records a command to add a possibly-managed shared component value on a NativeArray of entities. |
Add |
Records a command to add a possibly-managed shared component value on an entity. |
Add |
Obsolete. Use Add |
Add |
Records a command to add a possibly-managed shared component to all entities matching a query. |
Add |
Records a command to add an unmanaged shared component value on a NativeArray of entities. |
Add |
Records a command to add an unmanaged shared component value on an entity. |
Add |
Obsolete. Use Add |
Add |
Records a command to add a unmanaged shared component to all entities matching a query. |
Append |
Records a command to append a single element to the end of a dynamic buffer component. |
As |
An extension of EntityCommandBuffer that allows concurrent (deterministic) command buffer recording. |
Create |
Records a command to create an entity with no components. |
Create |
Records a command to create an entity with specified archetype. |
Destroy |
Obsolete. Use Destroy |
Destroy |
Records a command to destroy a NativeArray of entities. |
Destroy |
Records a command to destroy an entity. |
Destroy |
Obsolete. Use Destroy |
Destroy |
Records a command to destroy all entities matching a query. |
Dispose() | Deals with freeing and releasing unmanaged memory allocated by the entity command buffer. |
Instantiate(Entity) | Records a command to create an entity with specified entity prefab. |
Instantiate(Entity, Native |
Records a command to create a NativeArray of entities with specified entity prefab. |
Playback(Entity |
Play back all recorded operations against an entity manager. |
Playback(Exclusive |
Play back all recorded operations with an exclusive entity transaction.
Begin |
Remove |
Records a command to remove one or more components from a NativeArray of entities. |
Remove |
Records a command to remove one or more components from a NativeArray of entities. |
Remove |
Records a command to remove a component from an entity. |
Remove |
Records a command to remove one or more components from an entity. |
Remove |
Obsolete. Use Remove |
Remove |
Records a command to remove a component from all entities matching a query. |
Remove |
Obsolete. Use RemoveComponent(EntityQuery,ComponentTypeSet,EntityQueryCaptureMode) instead. |
Remove |
Records a command to remove multiple components from all entities matching a query. |
Remove |
Obsolete. Use Remove |
Remove |
Obsolete. Use RemoveComponent(EntityQuery,ComponentTypeSet,EntityQueryCaptureMode) instead. |
Remove |
Obsolete. Use Remove |
Remove |
Records a command to remove component of type T from a NativeArray of entities. |
Remove |
Records a command to remove component of type T from an entity. |
Remove |
Obsolete. Use Remove |
Remove |
Records a command to remove a component from all entities matching a query. |
Replace |
Records a command that replaces a component value for an entity's Linked |
Set |
Records a command to set a dynamic buffer on an entity. |
Set |
Records a command to enable or disable a Component |
Set |
Records a command to enable or disable a Component |
Set |
Records a command that sets a component for an entity's Linked |
Set |
Records a command to set a hybrid component value for all entities matching a query. |
Set |
Obsolete. Use Set |
Set |
Records a command to set a component value on an entity. |
Set |
Records a command to add or remove the Disabled component. By default EntityQuery does not include entities containing the Disabled component. Enabled entities are processed by systems, disabled entities are not. If the entity was converted from a prefab and thus has a Linked |
Set |
Records a command to set a name of an entity if Debug Names is enabled. |
Set |
Obsolete. Use Set |
Set |
Obsolete. Use Set |
Set |
Records a command to set a possibly-managed shared component value on a NativeArray of entities. |
Set |
Records a command to set a possibly-managed shared component value on an entity. |
Set |
Obsolete. Use Set |
Set |
Records a command to set a possibly-managed shared component value on all entities matching a query. |
Set |
Records a command to set an unmanaged shared component value on a NativeArray of entities. |
Set |
Records a command to set an unmanaged shared component value on an entity. |
Set |
Obsolete. Use Set |
Set |
Records a command to set an unmanaged shared component value on all entities matching a query. |