docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XrUuid

    Represents a 128-bit Universally Unique Identifier. Provided by XR_VERSION_1_1.

    Implements
    IEquatable<XrUuid>
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.OpenXR.NativeTypes
    Assembly: Unity.XR.OpenXR.dll
    Syntax
    [Serializable]
    public readonly struct XrUuid : IEquatable<XrUuid>

    Constructors

    XrUuid(ulong, ulong)

    Construct an instance from two 64-bit unsigned integers.

    Declaration
    public XrUuid(ulong dataPart1, ulong dataPart2)
    Parameters
    Type Name Description
    ulong dataPart1

    The first 64 bits of the UUID.

    ulong dataPart2

    The second 64 bits of the UUID.

    Properties

    dataPart1

    The first 64 bits of the UUID.

    Declaration
    public ulong dataPart1 { get; }
    Property Value
    Type Description
    ulong

    dataPart2

    The second 64 bits of the UUID.

    Declaration
    public ulong dataPart2 { get; }
    Property Value
    Type Description
    ulong

    empty

    A read-only instance of XrUuid whose value is all zeros.

    Declaration
    public static XrUuid empty { get; }
    Property Value
    Type Description
    XrUuid

    Methods

    Equals(XrUuid)

    Tests for equality by value comparison.

    Declaration
    public bool Equals(XrUuid other)
    Parameters
    Type Name Description
    XrUuid other

    The other UUID.

    Returns
    Type Description
    bool

    true if the structs are equal. Otherwise, false.

    ToString()

    Generates a string representation suitable for debugging.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    The string.

    Overrides
    ValueType.ToString()

    Implements

    IEquatable<T>
    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)