docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetEntityOffsets

    GetEntityOffsets(TypeIndex, out int)

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

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

    The TypeIndex to review.

    int count
    Returns
    Type Description
    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.

    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)