docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetUnmanagedSharedComponentData

    GetUnmanagedSharedComponentData<T>(Entity)

    Obsolete. Use GetSharedComponent<T>(Entity) instead.

    Declaration
    [Obsolete("Use GetSharedComponent<T> (UnityUpgradable) -> GetSharedComponent<T>(*)", true)]
    public T GetUnmanagedSharedComponentData<T>(Entity entity) where T : unmanaged, ISharedComponentData
    Parameters
    Type Name Description
    Entity entity

    The target entity

    Returns
    Type Description
    T

    The index of the target entity's value for the shared component of type T.

    Type Parameters
    Name Description
    T

    The type of the unmanaged shared component to look up on the target entity

    GetUnmanagedSharedComponentData<T>(int)

    Obsolete. Use GetSharedComponent<T>(int) instead.

    Declaration
    [Obsolete("Use GetSharedComponent<T> (UnityUpgradable) -> GetSharedComponent<T>(*)", true)]
    public T GetUnmanagedSharedComponentData<T>(int sharedComponentIndex) where T : unmanaged, ISharedComponentData
    Parameters
    Type Name Description
    int sharedComponentIndex

    The index of the shared component in the internal shared component list.

    Returns
    Type Description
    T

    A copy of the shared component.

    Type Parameters
    Name Description
    T

    The data type of the shared component.

    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)