docs.unity.cn
    Show / Hide Table of Contents

    Method GetSharedComponentTypeHandle

    GetSharedComponentTypeHandle<T>()

    Gets the run-time type information required to access a shared component data in a chunk.

    Declaration
    public static SharedComponentTypeHandle<T> GetSharedComponentTypeHandle<T>()
        where T : struct, ISharedComponentData
    Returns
    Type Description
    SharedComponentTypeHandle<T>

    An object representing the type information required to safely access shared component data stored in a chunk.

    Type Parameters
    Name Description
    T

    A struct that implements ISharedComponentData.

    Remarks

    Not working in Entities.ForEach, IJobEntity, Utility methods, and Aspects

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Thursday, August 10, 2023