docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CalculateFieldOffsetsUnmanaged

    CalculateFieldOffsetsUnmanaged(Type, out bool, out bool, out bool, ref NativeList<EntityOffsetInfo>, ref NativeList<EntityOffsetInfo>, ref NativeList<EntityOffsetInfo>, ref NativeList<EntityOffsetInfo>, HashSet<Type>)

    Calculates the field offsets.

    Declaration
    public static void CalculateFieldOffsetsUnmanaged(Type type, out bool hasEntityRefs, out bool hasBlobRefs, out bool hasWeakAssetRefs, ref NativeList<TypeManager.EntityOffsetInfo> entityOffsets, ref NativeList<TypeManager.EntityOffsetInfo> blobOffsets, ref NativeList<TypeManager.EntityOffsetInfo> weakAssetRefOffsets, ref NativeList<TypeManager.EntityOffsetInfo> unityObjectRefOffsets, HashSet<Type> cache = null)
    Parameters
    Type Name Description
    Type type

    The inspected type.

    bool hasEntityRefs

    True if the type has any fields of type Entity, otherwise false.

    bool hasBlobRefs

    True if the type has any fields of type BlobAssetReferenceData, otherwise false.

    bool hasWeakAssetRefs

    True if the type has fields of type UntypedWeakReferenceId, otherwise false.

    NativeList<TypeManager.EntityOffsetInfo> entityOffsets

    The offsets of the fields of type Entity.

    NativeList<TypeManager.EntityOffsetInfo> blobOffsets

    The offsets of the fields of type BlobAssetReferenceData.

    NativeList<TypeManager.EntityOffsetInfo> weakAssetRefOffsets

    The offsets of the fields of type UntypedWeakReferenceId.

    NativeList<TypeManager.EntityOffsetInfo> unityObjectRefOffsets
    HashSet<Type> cache

    Cache to accelerate type inspection codepaths when calling this function multiple times.

    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)