docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method HasReferencesManaged

    HasReferencesManaged(Type, out bool, out bool, out bool, Dictionary<Type, EntityBlobRefResult>, int)

    Checks if a type has any Entity, BlobAssetReferenceData or UnityObjectRef<T> references.

    Declaration
    public static void HasReferencesManaged(Type type, out bool hasEntityReferences, out bool hasBlobReferences, out bool hasUnityObjectReferences, Dictionary<Type, EntityRemapUtility.EntityBlobRefResult> cache = null, int maxDepth = 128)
    Parameters
    Type Name Description
    Type type

    The type to inspect.

    bool hasEntityReferences

    Specifies if the type has any Entity references.

    bool hasBlobReferences

    Specifies if the type has any BlobAssetReferenceData references.

    bool hasUnityObjectReferences

    Specifies if the type has any UnityObjectRef<T> references.

    Dictionary<Type, EntityRemapUtility.EntityBlobRefResult> cache

    Map of type to EntityRemapUtility.EntityBlobRefResult used to accelerate the type recursion.

    int maxDepth

    The maximum depth for the recursion.

    In This Article
    Back to top
    Copyright © 2025 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)