docs.unity.cn
    Show / Hide Table of Contents

    Method GetSharedComponentManaged

    GetSharedComponentManaged<T>(Entity)

    Gets a shared component from an entity.

    Declaration
    public T GetSharedComponentManaged<T>(Entity entity)
        where T : struct, ISharedComponentData
    Parameters
    Type Name Description
    Entity entity

    The entity.

    Returns
    Type Description
    T

    A copy of the shared component.

    Type Parameters
    Name Description
    T

    The type of shared component.

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