Struct ExclusiveEntityTransaction
Provides an interface to safely perform a subset of Entity
Namespace: Unity.Entities
Assembly: Unity.Entities.dll
Syntax
public struct ExclusiveEntityTransaction
Remarks
The intended use case for this interface is to let a worker thread stream Entity data into a staging World
and perform any necessary post-processing structural changes, prior to moving the final data into the main simulation
world using Move
Warning: Only the Entity
Properties
Name | Description |
---|---|
Entity |
Return the entity manager this transaction operates upon. |
Methods
Name | Description |
---|---|
Add |
Adds a dynamic buffer component to an entity. |
Add |
Adds a component to an entity. |
Add |
Obsolete. Use Add |
Add |
Adds a shared component to an array of entities |
Add |
Adds a shared component to an entity. |
Add |
Adds a shared component to multiple entities |
Add |
Adds a shared component to an entity. |
Create |
Creates an archetype from a set of component types. |
Create |
Creates an entity having components of the specified types. |
Create |
Creates an entity having the specified archetype. |
Create |
Creates a set of entities of the specified archetype. |
Destroy |
Destroys all entities in an array. |
Destroy |
Destroys all entities in a slice of an array. |
Destroy |
Destroys an entity. |
Exists(Entity) | Reports whether an Entity object is still valid. |
Get |
Gets the dynamic buffer of an entity. |
Get |
Gets the value of a component for an entity. |
Get |
Obsolete. Use Get |
Get |
Gets a shared component from an entity. |
Get |
Gets a shared component from an entity. |
Has |
Checks whether an entity has a dynamic buffer of a specific IBufferElementData type. |
Has |
Checks whether an entity has a specific type of component. |
Instantiate(Entity) | Clones an entity. |
Instantiate(Entity, Native |
Makes multiple clones of an entity. |
Is |
Checks whether a given Component |
Is |
Checks whether a given Component |
Remove |
Removes a component from an entity. |
Set |
Sets the value of a component of an entity. |
Set |
Enable or disable Component |
Set |
Enable or disable a Component |
Set |
Obsolete. Use Set |
Set |
Sets the shared component on an array of entities |
Set |
Sets the shared component of an entity. |
Set |
Sets the shared component value on an array of entities |
Set |
Sets the shared component of an entity. |
Swap |
Swaps the components of two entities. |