Struct ExclusiveEntityTransaction | Entities | 0.10.0-preview.6
docs.unity3d.com
    Show / Hide Table of Contents

    Struct ExclusiveEntityTransaction

    Namespace: Unity.Entities
    Syntax
    public struct ExclusiveEntityTransaction

    Properties

    EntityManager

    Return the entity manager this transaction operates upon

    Declaration
    public EntityManager EntityManager { get; }
    Property Value
    Type Description
    EntityManager

    Methods

    AddBuffer<T>(Entity)

    Declaration
    public DynamicBuffer<T> AddBuffer<T>(Entity entity)
        where T : struct, IBufferElementData
    Parameters
    Type Name Description
    Entity entity
    Returns
    Type Description
    DynamicBuffer<T>
    Type Parameters
    Name Description
    T

    AddComponent(Entity, ComponentType)

    Declaration
    public void AddComponent(Entity entity, ComponentType componentType)
    Parameters
    Type Name Description
    Entity entity
    ComponentType componentType

    CreateArchetype(ComponentType[])

    Declaration
    public EntityArchetype CreateArchetype(params ComponentType[] types)
    Parameters
    Type Name Description
    ComponentType[] types
    Returns
    Type Description
    EntityArchetype

    CreateEntity(ComponentType[])

    Declaration
    public Entity CreateEntity(params ComponentType[] types)
    Parameters
    Type Name Description
    ComponentType[] types
    Returns
    Type Description
    Entity

    CreateEntity(EntityArchetype)

    Declaration
    public Entity CreateEntity(EntityArchetype archetype)
    Parameters
    Type Name Description
    EntityArchetype archetype
    Returns
    Type Description
    Entity

    CreateEntity(EntityArchetype, NativeArray<Entity>)

    Declaration
    public void CreateEntity(EntityArchetype archetype, NativeArray<Entity> entities)
    Parameters
    Type Name Description
    EntityArchetype archetype
    NativeArray<Entity> entities

    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
    Type Description
    Boolean

    GetBuffer<T>(Entity)

    Declaration
    public DynamicBuffer<T> GetBuffer<T>(Entity entity)
        where T : struct, IBufferElementData
    Parameters
    Type Name Description
    Entity entity
    Returns
    Type Description
    DynamicBuffer<T>
    Type Parameters
    Name Description
    T

    GetComponentData<T>(Entity)

    Declaration
    public T GetComponentData<T>(Entity entity)
        where T : struct, IComponentData
    Parameters
    Type Name Description
    Entity entity
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    GetSharedComponentData<T>(Entity)

    Declaration
    public T GetSharedComponentData<T>(Entity entity)
        where T : struct, ISharedComponentData
    Parameters
    Type Name Description
    Entity entity
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    HasComponent(Entity, ComponentType)

    Declaration
    public bool HasComponent(Entity entity, ComponentType type)
    Parameters
    Type Name Description
    Entity entity
    ComponentType type
    Returns
    Type Description
    Boolean

    Instantiate(Entity)

    Declaration
    public Entity Instantiate(Entity srcEntity)
    Parameters
    Type Name Description
    Entity srcEntity
    Returns
    Type Description
    Entity

    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
    Type Name Description
    Entity entity
    ComponentType type

    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
    Name Description
    T

    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
    Name Description
    T

    SwapComponents(ArchetypeChunk, Int32, ArchetypeChunk, Int32)

    Declaration
    public void SwapComponents(ArchetypeChunk leftChunk, int leftIndex, ArchetypeChunk rightChunk, int rightIndex)
    Parameters
    Type Name Description
    ArchetypeChunk leftChunk
    Int32 leftIndex
    ArchetypeChunk rightChunk
    Int32 rightIndex
    In This Article
    • Properties
      • EntityManager
    • Methods
      • AddBuffer<T>(Entity)
      • AddComponent(Entity, ComponentType)
      • CreateArchetype(ComponentType[])
      • CreateEntity(ComponentType[])
      • CreateEntity(EntityArchetype)
      • CreateEntity(EntityArchetype, NativeArray<Entity>)
      • DestroyEntity(NativeArray<Entity>)
      • DestroyEntity(NativeSlice<Entity>)
      • DestroyEntity(Entity)
      • Exists(Entity)
      • GetBuffer<T>(Entity)
      • GetComponentData<T>(Entity)
      • GetSharedComponentData<T>(Entity)
      • HasComponent(Entity, ComponentType)
      • Instantiate(Entity)
      • Instantiate(Entity, NativeArray<Entity>)
      • RemoveComponent(Entity, ComponentType)
      • SetComponentData<T>(Entity, T)
      • SetSharedComponentData<T>(Entity, T)
      • SwapComponents(ArchetypeChunk, Int32, ArchetypeChunk, Int32)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023