docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetSharedComponentDataBoxed

    GetSharedComponentDataBoxed(ref DynamicSharedComponentTypeHandle, EntityManager)

    Gets the current value of a shared component.

    Declaration
    public readonly object GetSharedComponentDataBoxed(ref DynamicSharedComponentTypeHandle typeHandle, EntityManager entityManager)
    Parameters
    Type Name Description
    DynamicSharedComponentTypeHandle typeHandle

    An object containing type and job safety information. To create this object, call GetDynamicSharedComponentTypeHandle(ComponentType).

    EntityManager entityManager

    An EntityManager instance.

    Returns
    Type Description
    object

    The shared component value.

    Remarks

    You cannot call this function inside a job.

    GetSharedComponentDataBoxed(DynamicSharedComponentTypeHandle, EntityManager)

    Obsolete. Use GetSharedComponentDataBoxed(ref DynamicSharedComponentTypeHandle, EntityManager) instead.

    Declaration
    [Obsolete("The typeHandle argument should now be passed by ref. (RemovedAfter Entities 1.0)", false)]
    public readonly object GetSharedComponentDataBoxed(DynamicSharedComponentTypeHandle typeHandle, EntityManager entityManager)
    Parameters
    Type Name Description
    DynamicSharedComponentTypeHandle typeHandle

    An object containing type and job safety information. To create this object, call GetDynamicSharedComponentTypeHandle(ComponentType).

    EntityManager entityManager

    An EntityManager instance.

    Returns
    Type Description
    object

    The shared component value.

    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)