docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetSharedComponentDataIndex

    GetSharedComponentDataIndex<T>(Entity)

    Retrieves the index of the unmanaged shared component data value for an entity.

    Declaration
    [Obsolete("Use GetSharedComponentIndex<T> instead. (RemovedAfter Entities 1.0) (UnityUpgradable) -> GetSharedComponentIndex<T>(*)", true)]
    public int GetSharedComponentDataIndex<T>(Entity entity) where T : unmanaged, ISharedComponentData
    Parameters
    Type Name Description
    Entity entity

    The target entity

    Returns
    Type Description
    int

    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

    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)