Struct SerializedARCollaborationData
Represents the serialized form of an ARCollaborationData. Obtain with ToSerialized().
Inherited Members
Namespace: UnityEngine.XR.ARKit
Assembly: Unity.XR.ARKit.dll
Syntax
public struct SerializedARCollaborationData : IDisposable, IEquatable<SerializedARCollaborationData>
Properties
bytes
Get the raw bytes of the serialized ARCollaborationData as a NativeSlice
.
No copies are made; the NativeSlice
is a "view" into the raw data.
The NativeSlice
is valid until this object is Dispose()d.
Declaration
public NativeSlice<byte> bytes { get; }
Property Value
Type | Description |
---|---|
NativeSlice<byte> |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown if created is |
created
Whether the SerializedARCollaborationData has been created or not.
Declaration
public bool created { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
Dispose()
Disposes the native resource associated with this SerializedARCollaborationData.
Declaration
public void Dispose()
Equals(object)
Compares for equality.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | An |
Returns
Type | Description |
---|---|
bool |
|
Overrides
Equals(SerializedARCollaborationData)
Compares for equality.
Declaration
public bool Equals(SerializedARCollaborationData other)
Parameters
Type | Name | Description |
---|---|---|
SerializedARCollaborationData | other | The other SerializedARCollaborationData to compare against. |
Returns
Type | Description |
---|---|
bool |
|
GetHashCode()
Generates a hash code suitable for use in HashSet
and Dictionary
.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash of the SerializedARCollaborationData. |
Overrides
Operators
operator ==(SerializedARCollaborationData, SerializedARCollaborationData)
Compares lhs
and rhs
for equality using Equals(SerializedARCollaborationData).
Declaration
public static bool operator ==(SerializedARCollaborationData lhs, SerializedARCollaborationData rhs)
Parameters
Type | Name | Description |
---|---|---|
SerializedARCollaborationData | lhs | The left-hand-side SerializedARCollaborationData of the comparison. |
SerializedARCollaborationData | rhs | The right-hand-side SerializedARCollaborationData of the comparison. |
Returns
Type | Description |
---|---|
bool |
|
operator !=(SerializedARCollaborationData, SerializedARCollaborationData)
Compares lhs
and rhs
for inequality using Equals(SerializedARCollaborationData).
Declaration
public static bool operator !=(SerializedARCollaborationData lhs, SerializedARCollaborationData rhs)
Parameters
Type | Name | Description |
---|---|---|
SerializedARCollaborationData | lhs | The left-hand-side SerializedARCollaborationData of the comparison. |
SerializedARCollaborationData | rhs | The right-hand-side SerializedARCollaborationData of the comparison. |
Returns
Type | Description |
---|---|
bool |
|