docs.unity.cn
    Show / Hide Table of Contents

    Struct UntypedWeakReferenceId

    Used to identify weakly referenced data.

    Namespace: Unity.Entities.Serialization
    Syntax
    [Serializable]
    public struct UntypedWeakReferenceId : IEquatable<UntypedWeakReferenceId>

    Constructors

    Name Description
    UntypedWeakReferenceId(Hash128, Int64, Int32, WeakReferenceGenerationType)

    Construct new UntypedWeakReferenceId.

    UntypedWeakReferenceId(RuntimeGlobalObjectId, WeakReferenceGenerationType)

    Construct a reference given the global id and generation type.

    Fields

    Name Description
    GenerationType

    The type of reference this is. It is aliased to RuntimeGlobalObjectId.SceneObjectIdentifier1.

    GlobalId

    The global object id. This matches the editor global id.

    Properties

    Name Description
    IsValid

    Methods

    Name Description
    CreateFromObjectInstance(Object)

    Get a weak reference from a Unity object reference.

    Equals(Object)

    Checks if this reference is equal to another object.

    Equals(UntypedWeakReferenceId)

    Checks if this reference is equal to another reference.

    GetEditorObject(UntypedWeakReferenceId)

    Gets an object from its id.

    GetHashCode()

    Returns the hash code of this id.

    ToString()

    Converts the id to a string.

    Operators

    Name Description
    Equality(UntypedWeakReferenceId, UntypedWeakReferenceId)
    Inequality(UntypedWeakReferenceId, UntypedWeakReferenceId)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023