docs.unity.cn
    Show / Hide Table of Contents

    Class EntityManagerManagedComponentExtensions

    Variants of EntityManager methods that support managed components.

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

    Methods

    Name Description
    AddChunkComponentData<T>(EntityManager, Entity)

    Adds a chunk component to the specified entity.

    AddChunkComponentData<T>(EntityManager, EntityQuery, T)

    Adds a managed chunk component to each of the chunks identified by an EntityQuery and set the component values.

    AddComponentData<T>(EntityManager, Entity, T)

    Adds a managed component to an entity and set the value of that component.

    AddComponentData<T>(EntityManager, SystemHandle, T)

    Adds a managed component to an entity associated with a system and set the value of that component.

    CreateSingleton<T>(EntityManager, T, FixedString64Bytes)

    Creates and supports only a single entity with a given managed component.

    CreateSingleton<T>(EntityManager, FixedString64Bytes)

    Creates and supports only a single entity with a given managed component.

    GetChunkComponentData<T>(EntityManager, ArchetypeChunk)

    Gets the value of a chunk component.

    GetChunkComponentData<T>(EntityManager, Entity)

    Gets the value of chunk component for the chunk containing the specified entity.

    GetComponentData<T>(EntityManager, Entity)

    Gets the value of a component for an entity.

    GetComponentData<T>(EntityManager, SystemHandle)

    Gets the value of a component for an entity associated with a system.

    MoveComponent<T>(EntityManager, Entity, Entity)

    Move the given component on the source entity to another destination entity.

    SetChunkComponentData<T>(EntityManager, ArchetypeChunk, T)

    Sets the value of a chunk component.

    SetComponentData<T>(EntityManager, Entity, T)

    Sets the value of a component of an entity.

    SetComponentData<T>(EntityManager, SystemHandle, T)

    Sets the value of a component of an entity associated with a system.

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