Struct ExclusiveEntityTransaction
Syntax
public struct ExclusiveEntityTransaction
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
CheckAccess()
Declaration
[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]
public void CheckAccess()
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
Type |
Name |
Description |
NativeArray<Entity> |
entities |
|
DestroyEntity(NativeSlice<Entity>)
Declaration
public void DestroyEntity(NativeSlice<Entity> entities)
Parameters
Type |
Name |
Description |
NativeSlice<Entity> |
entities |
|
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
Type |
Name |
Description |
Entity |
srcEntity |
|
NativeArray<Entity> |
outputEntities |
|
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