Struct ExclusiveEntityTransaction
Syntax
public struct ExclusiveEntityTransaction
Properties
EntityManager
Return the entity manager this transaction operates upon
Declaration
public EntityManager EntityManager { get; }
Property Value
Methods
AddBuffer<T>(Entity)
Declaration
public DynamicBuffer<T> AddBuffer<T>(Entity entity)
where T : struct, IBufferElementData
Parameters
Type |
Name |
Description |
Entity |
entity |
|
Returns
Type Parameters
AddComponent(Entity, ComponentType)
Declaration
public void AddComponent(Entity entity, ComponentType componentType)
Parameters
CreateArchetype(ComponentType[])
Declaration
public EntityArchetype CreateArchetype(params ComponentType[] types)
Parameters
Returns
CreateEntity(ComponentType[])
Declaration
public Entity CreateEntity(params ComponentType[] types)
Parameters
Returns
CreateEntity(EntityArchetype)
Declaration
public Entity CreateEntity(EntityArchetype archetype)
Parameters
Returns
CreateEntity(EntityArchetype, NativeArray<Entity>)
Declaration
public void CreateEntity(EntityArchetype archetype, NativeArray<Entity> entities)
Parameters
DestroyEntity(NativeArray<Entity>)
Declaration
public void DestroyEntity(NativeArray<Entity> entities)
Parameters
DestroyEntity(NativeSlice<Entity>)
Declaration
public void DestroyEntity(NativeSlice<Entity> entities)
Parameters
DestroyEntity(Entity)
Declaration
public void DestroyEntity(Entity entity)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
Exists(Entity)
Declaration
public bool Exists(Entity entity)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
Returns
GetBuffer<T>(Entity)
Declaration
public DynamicBuffer<T> GetBuffer<T>(Entity entity)
where T : struct, IBufferElementData
Parameters
Type |
Name |
Description |
Entity |
entity |
|
Returns
Type Parameters
GetComponentData<T>(Entity)
Declaration
public T GetComponentData<T>(Entity entity)
where T : struct, IComponentData
Parameters
Type |
Name |
Description |
Entity |
entity |
|
Returns
Type Parameters
GetSharedComponentData<T>(Entity)
Declaration
public T GetSharedComponentData<T>(Entity entity)
where T : struct, ISharedComponentData
Parameters
Type |
Name |
Description |
Entity |
entity |
|
Returns
Type Parameters
HasComponent(Entity, ComponentType)
Declaration
public bool HasComponent(Entity entity, ComponentType type)
Parameters
Returns
Instantiate(Entity)
Declaration
public Entity Instantiate(Entity srcEntity)
Parameters
Type |
Name |
Description |
Entity |
srcEntity |
|
Returns
Instantiate(Entity, NativeArray<Entity>)
Declaration
public void Instantiate(Entity srcEntity, NativeArray<Entity> outputEntities)
Parameters
RemoveComponent(Entity, ComponentType)
Declaration
public void RemoveComponent(Entity entity, ComponentType type)
Parameters
SetComponentData<T>(Entity, T)
Declaration
public void SetComponentData<T>(Entity entity, T componentData)
where T : struct, IComponentData
Parameters
Type |
Name |
Description |
Entity |
entity |
|
T |
componentData |
|
Type Parameters
SetSharedComponentData<T>(Entity, T)
Declaration
public void SetSharedComponentData<T>(Entity entity, T componentData)
where T : struct, ISharedComponentData
Parameters
Type |
Name |
Description |
Entity |
entity |
|
T |
componentData |
|
Type Parameters
SwapComponents(ArchetypeChunk, Int32, ArchetypeChunk, Int32)
Declaration
public void SwapComponents(ArchetypeChunk leftChunk, int leftIndex, ArchetypeChunk rightChunk, int rightIndex)
Parameters
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.