docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct EntityCommandBuffer.ParallelWriter

    Allows concurrent (deterministic) command buffer recording.

    Namespace: Unity.Entities
    Assembly: Unity.Entities.dll
    Syntax
    [NativeContainer]
    [NativeContainerIsAtomicWriteOnly]
    public struct EntityCommandBuffer.ParallelWriter

    Methods

    Name Description
    AddBuffer<T>(int, Entity)

    Records a command to add a dynamic buffer to an entity.

    AddComponent(int, NativeArray<Entity>, ComponentType)

    Records a command to add a component to a NativeArray of entities.

    AddComponent(int, NativeArray<Entity>, in ComponentTypeSet)

    Records a command to add one or more components to a NativeArray of entities.

    AddComponent(int, Entity, ComponentType)

    Records a command to add a component to an entity.

    AddComponent(int, Entity, in ComponentTypeSet)

    Records a command to add one or more components to an entity.

    AddComponentForLinkedEntityGroup(int, Entity, EntityQueryMask, ComponentType)

    Records a command that adds a component to an entity's LinkedEntityGroup based on an EntityQueryMask. Entities in the LinkedEntityGroup that don't match the mask will be skipped safely.

    AddComponentForLinkedEntityGroup<T>(int, Entity, EntityQueryMask, T)

    Records a command that adds a component to an entity's LinkedEntityGroup based on an EntityQueryMask. Entities in the LinkedEntityGroup that don't match the mask will be skipped safely.

    AddComponent<T>(int, NativeArray<Entity>)

    Records a command to add component of type T to a NativeArray of entities.

    AddComponent<T>(int, NativeArray<Entity>, T)

    Records a command to add component of type T to a NativeArray of entities.

    AddComponent<T>(int, Entity)

    Records a command to add component of type T to an entity.

    AddComponent<T>(int, Entity, T)

    Records a command to add component of type T to an entity.

    AddSharedComponentManaged<T>(int, NativeArray<Entity>, T)

    Records a command to add a possibly-managed shared component value on a NativeArray of entities.

    AddSharedComponentManaged<T>(int, Entity, T)

    Records a command to add a shared component value on an entity.

    AddSharedComponent<T>(int, NativeArray<Entity>, T)

    Records a command to add an unmanaged shared component value on a NativeArray of entities.

    AddSharedComponent<T>(int, Entity, T)

    Records a command to add an unmanaged shared component value on an entity.

    AppendToBuffer<T>(int, Entity, T)

    Records a command to append a single element to the end of a dynamic buffer component.

    CreateEntity(int)

    Records a command to create an entity with no components.

    CreateEntity(int, EntityArchetype)

    Records a command to create an entity with specified archetype.

    DestroyEntity(int, NativeArray<Entity>)

    Records a command to destroy a NativeArray of entities.

    DestroyEntity(int, Entity)

    Records a command to destroy an entity.

    Instantiate(int, Entity)

    Records a command to create an entity with specified entity prefab.

    Instantiate(int, Entity, NativeArray<Entity>)

    Records a command to create a NativeArray of entities with specified entity prefab.

    RemoveComponent(int, NativeArray<Entity>, ComponentType)

    Records a command to remove one or more components from a NativeArray of entities.

    RemoveComponent(int, NativeArray<Entity>, in ComponentTypeSet)

    Records a command to remove one or more components from a NativeArray of entities.

    RemoveComponent(int, Entity, ComponentType)

    Records a command to remove a component from an entity.

    RemoveComponent(int, Entity, in ComponentTypeSet)

    Records a command to remove one or more components from an entity.

    RemoveComponent<T>(int, NativeArray<Entity>)

    Records a command to remove component of type T from a NativeArray of entities.

    RemoveComponent<T>(int, Entity)

    Records a command to remove component of type T from an entity.

    ReplaceComponentForLinkedEntityGroup<T>(int, Entity, T)

    Records a command that replaces a component value for an entity's LinkedEntityGroup. Entities in the LinkedEntityGroup that don't have the component will be skipped safely.

    SetBuffer<T>(int, Entity)

    Records a command to set a dynamic buffer on an entity.

    SetComponentEnabled(int, Entity, ComponentType, bool)

    Records a command to enable or disable a ComponentType on the specified Entity. This operation does not cause a structural change, or affect the value of the component. For the purposes of EntityQuery matching, an entity with a disabled component will behave as if it does not have that component.

    SetComponentEnabled<T>(int, Entity, bool)

    Records a command to enable or disable a ComponentType on the specified Entity. This operation does not cause a structural change, or affect the value of the component. For the purposes of EntityQuery matching, an entity with a disabled component will behave as if it does not have that component.

    SetComponentForLinkedEntityGroup<T>(int, Entity, EntityQueryMask, T)

    Records a command that sets a component for an entity's LinkedEntityGroup based on an EntityQueryMask. Entities in the LinkedEntityGroup that don't match the mask will be skipped safely.

    SetComponent<T>(int, Entity, T)

    Records a command to set a component value on an entity.

    SetEnabled(int, Entity, bool)

    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 LinkedEntityGroup component, the entire group will be enabled or disabled.

    SetName(int, Entity, in FixedString64Bytes)

    Records a command to set a name of an entity if Debug Names is enabled.

    SetSharedComponentManaged<T>(int, NativeArray<Entity>, T)

    Records a command to set a shared component value on a NativeArray of entities.

    SetSharedComponentManaged<T>(int, Entity, T)

    Records a command to set a shared component value on an entity.

    SetSharedComponent<T>(int, NativeArray<Entity>, T)

    Records a command to set a shared component value on a NativeArray of entities.

    SetSharedComponent<T>(int, Entity, T)

    Records a command to set an unmanaged shared component value on an entity.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)