docs.unity.cn
    Show / Hide Table of Contents

    Method GetUnmanagedSharedComponentDataIndex

    GetUnmanagedSharedComponentDataIndex<T>(Entity)

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

    Declaration
    [Obsolete("Use GetSharedComponentIndex<T> (UnityUpgradable) -> GetSharedComponentIndex<T>(*)", true)]
    public int GetUnmanagedSharedComponentDataIndex<T>(Entity entity)
        where T : struct, ISharedComponentData
    Parameters
    Type Name Description
    Entity entity

    The target entity

    Returns
    Type Description
    Int32

    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

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