docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetManagedComponentAccessor

    GetManagedComponentAccessor<T>(ref ComponentTypeHandle<T>, EntityManager)

    Provides access to a chunk's array of component values for a specific managed component type.

    Declaration
    public readonly ManagedComponentAccessor<T> GetManagedComponentAccessor<T>(ref ComponentTypeHandle<T> typeHandle, EntityManager manager) where T : class
    Parameters
    Type Name Description
    ComponentTypeHandle<T> typeHandle

    The type handle for the target component type.

    EntityManager manager

    The EntityManager which owns this chunk.

    Returns
    Type Description
    ManagedComponentAccessor<T>

    An interface to this chunk's component values for type T

    Type Parameters
    Name Description
    T

    The target component type

    GetManagedComponentAccessor<T>(ComponentTypeHandle<T>, EntityManager)

    Obsolete. Use GetManagedComponentAccessor<T>(ref ComponentTypeHandle<T>, EntityManager) instead.

    Declaration
    [Obsolete("The typeHandle argument should now be passed by ref. (RemovedAfter Entities 1.0)", false)]
    public readonly ManagedComponentAccessor<T> GetManagedComponentAccessor<T>(ComponentTypeHandle<T> typeHandle, EntityManager manager) where T : class
    Parameters
    Type Name Description
    ComponentTypeHandle<T> typeHandle

    The type handle for the target component type.

    EntityManager manager

    The EntityManager which owns this chunk.

    Returns
    Type Description
    ManagedComponentAccessor<T>

    An interface to this chunk's component values for type T

    Type Parameters
    Name Description
    T

    The target component type

    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)