Struct SerializedARCollaborationData
Represents the serialized form of an ARCollaborationData. Obtain with ToSerialized().
Namespace: UnityEngine.XR.ARKit
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 |
---|---|
Boolean |
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 |
---|---|
Boolean |
|
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 |
---|---|
Boolean |
|
GetHashCode()
Generates a hash code suitable for use in HashSet
and Dictionary
.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | A hash of the SerializedARCollaborationData. |
Overrides
Operators
Equality(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 |
---|---|
Boolean |
|
Inequality(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 |
---|---|
Boolean |
|