docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum EntityRemapUtility.HasRefResult

    Specifies if a System.Type has any Entity or BlobAssetReferenceData references in its hierarchy.

    Namespace: Unity.Entities
    Assembly: Unity.Entities.dll
    Syntax
    public enum EntityRemapUtility.HasRefResult
    Remarks

    This enum is returned by HasEntityReferencesManaged(Type, out HasRefResult, out HasRefResult, Dictionary<Type, EntityBlobRefResult>, int) which recursively traverses a System.Type and its fields to find entity or blob asset references.

    In some cases Unity cannot find all the Entity/Blob references within a type. For example, if the type is polymorphic and non-sealed, or if the type hierarchy is deep, making it too expensive to be worth inspecting it exhaustively. In this cases, the value MayHaveRef specifies that although no actual reference was found, the type cannot be treated as a type which definitely does not have any references during serialization.

    Fields

    Name Description
    HasRef

    The System.Type has a reference that was directly seen by the function.

    MayHaveRef

    The System.Type might have References.

    NoRef

    The System.Type does not have any References within the entire hierarchy.

    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)