Struct SerializableGuid
  
A Guid that can be serialized by Unity. The 128-bit Guid
is stored as two 64-bit ulongs. See also the creation utility at
UnityEditor.XR.ARSubsystems.SerializableGuidUtil.
 
Syntax
[Serializable]
public struct SerializableGuid : IEquatable<SerializableGuid>
 
Constructors
  
SerializableGuid(UInt64, UInt64)
Declaration
public SerializableGuid(ulong guidLow, ulong guidHigh)
 
Parameters
| Type | 
Name | 
Description | 
| UInt64 | 
guidLow | 
The low 8 bytes of the Guid. 
 | 
| UInt64 | 
guidHigh | 
The high 8 bytes of the Guid. 
 | 
Properties
  
empty
Used to represent System.Guid.Empty, e.g., a GUID whose value is all zeros.
 
Declaration
public static SerializableGuid empty { get; }
 
Property Value
guid
Reconstructs the Guid from the serialized data.
 
Declaration
public Guid guid { get; }
 
Property Value
Methods
  
Equals(Object)
Declaration
public override bool Equals(object obj)
 
Parameters
| Type | 
Name | 
Description | 
| Object | 
obj | 
 | 
Returns
Overrides
Equals(SerializableGuid)
Declaration
public bool Equals(SerializableGuid other)
 
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
 
Returns
Overrides
ToString()
Declaration
public override string ToString()
 
Returns
| Type | 
Description | 
| String | 
A string representation of the Guid. 
 | 
Overrides
ToString(String)
Generates a string representation of the Guid. Same as guid.ToString(format).
 
Declaration
public string ToString(string format)
 
Parameters
| Type | 
Name | 
Description | 
| String | 
format | 
A single format specifier that indicates how to format the value of the Guid.
See Microsoft's documentation
for more details. 
 | 
Returns
| Type | 
Description | 
| String | 
A string representation of the Guid. 
 | 
Generates a string representation of the Guid. Same as guid.ToString(format, provider).
 
Declaration
public string ToString(string format, IFormatProvider provider)
 
Parameters
| Type | 
Name | 
Description | 
| String | 
format | 
A single format specifier that indicates how to format the value of the Guid.
See Microsoft's documentation
for more details. 
 | 
| IFormatProvider | 
provider | 
An object that supplies culture-specific formatting information. 
 | 
Returns
| Type | 
Description | 
| String | 
A string representation of the Guid. 
 | 
Operators
  
Equality(SerializableGuid, SerializableGuid)
Declaration
public static bool operator ==(SerializableGuid lhs, SerializableGuid rhs)
 
Parameters
Returns
Inequality(SerializableGuid, SerializableGuid)
Declaration
public static bool operator !=(SerializableGuid lhs, SerializableGuid rhs)
 
Parameters
Returns