docs.unity.cn
    Show / Hide Table of Contents

    Class EntityCommandBufferManagedComponentExtensions

    Provides additional methods for using managed components with an EntityCommandBuffer.

    Inheritance
    Object
    EntityCommandBufferManagedComponentExtensions
    Namespace: Unity.Entities
    Syntax
    public static class EntityCommandBufferManagedComponentExtensions

    Methods

    Name Description
    AddComponent<T>(EntityCommandBuffer, Entity)

    Records a command to add a managed component for an entity.

    AddComponent<T>(EntityCommandBuffer, Entity, T)

    Records a command to add and set a managed component for an entity.

    AddComponent<T>(EntityCommandBuffer, EntityQuery, T)

    Records a command to add a managed component and set its value for all entities matching a query.

    AddComponentForEntityQuery<T>(EntityCommandBuffer, EntityQuery, T)

    Obsolete. Use AddComponent<T>(EntityCommandBuffer, EntityQuery, T) instead.

    SetComponent<T>(EntityCommandBuffer, Entity, T)

    Records a command to set a managed component for an entity.

    SetComponent<T>(EntityCommandBuffer, EntityQuery, T)

    Records a command to set a managed component value for all entities matching a query.

    SetComponentEnabled<T>(EntityCommandBuffer, Entity, Boolean)

    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.

    SetComponentForEntityQuery<T>(EntityCommandBuffer, EntityQuery, T)

    Obsolete. Use SetComponent<T>(EntityCommandBuffer, EntityQuery, T) instead.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023