docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Struct SerializableGuid

    A Guid that can be serialized by Unity.

    Implements
    IEquatable<SerializableGuid>
    Inherited Members
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.XR.CoreUtils
    Assembly: solution.dll
    Syntax
    [Serializable]
    public struct SerializableGuid : IEquatable<SerializableGuid>
    Remarks

    The 128-bit Guid is stored as two 64-bit ulongs. See the creation utility, SerializableGuidUtil, for additional information.

    Constructors

    Name Description
    SerializableGuid(ulong, ulong)

    Constructs a SerializableGuid from two 64-bit ulong values.

    Properties

    Name Description
    Empty

    Represents System.Guid.Empty, a GUID whose value is all zeros.

    Guid

    Reconstructs the Guid from the serialized data.

    Methods

    Name Description
    Equals(object)

    Checks if this SerializableGuid is equal to an object.

    Equals(SerializableGuid)

    Check if this SerializableGuid is equal to another SerializableGuid.

    GetHashCode()

    Gets the hash code for this SerializableGuid.

    ToString()

    Generates a string representation of the Guid. Same as ToString(). See Microsoft's documentation for more details.

    ToString(string)

    Generates a string representation of the Guid. Same as ToString(string).

    ToString(string, IFormatProvider)

    Generates a string representation of the Guid. Same as ToString(string, IFormatProvider).

    Operators

    Name Description
    operator ==(SerializableGuid, SerializableGuid)

    Perform an equality operation on two SerializableGuids.

    operator !=(SerializableGuid, SerializableGuid)

    Perform an inequality operation on two SerializableGuids.

    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)