Struct XrUuid
Represents a 128-bit Universally Unique Identifier. Provided by XR_VERSION_1_1
.
Implements
Inherited Members
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 |
|
ToString()
Generates a string representation suitable for debugging.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | The string. |