docs.unity.cn
    Show / Hide Table of Contents

    Method GetEntityOffsets

    GetEntityOffsets(TypeIndex, out Int32)

    Gets a pointer to entity offsets for a given type index.

    Declaration
    [GenerateTestsForBurstCompatibility]
    public static TypeManager.EntityOffsetInfo*GetEntityOffsets(TypeIndex typeIndex, out int count)
    Parameters
    Type Name Description
    TypeIndex typeIndex

    The TypeIndex to review.

    Int32 count
    Returns
    Type Description
    TypeManager.EntityOffsetInfo*

    Returns a pointer to the entity offsets.

    Remarks

    This always returns a pointer even if the given type has no entity offsets. Always check and iterate over the returned pointer using the returned count.

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