Struct ARCollaborationData
Represents the Objective-C type ARCollaborationData.
Inherited Members
Namespace: UnityEngine.XR.ARKit
Assembly: solution.dll
Syntax
public struct ARCollaborationData : IDisposable, IEquatable<ARCollaborationData>
Remarks
This struct mirrors the Objective-C type ARCollaborationData. Because it represents a native resource, it must be explicitly disposed when no longer needed.
ARCollaborationData can be constructed from a byte array, or from DequeueCollaborationData().
This struct is not thread-safe, but it may be constructed and disposed on any thread.
Constructors
Name | Description |
---|---|
ARCollaborationData(byte[]) | Constructs an ARCollaborationData from a byte array.
Check valid after construction to ensure |
ARCollaborationData(byte[], int, int) | Constructs an ARCollaborationData from a byte array.
Check valid after construction to ensure |
ARCollaborationData(NativeSlice<byte>) | Constructs an ARCollaborationData from a |
Properties
Name | Description |
---|---|
priority | Gets the priority of the collaboration data. Use this to determine how you should send the information to peers in a collaborative session (for example, reliably vs. unreliably.) |
valid | True if the data is valid. The data might be invalid if this object was constructed with an invalid byte array, or if it has been disposed. |
Methods
Name | Description |
---|---|
Dispose() | Dispose the native ARCollaborationData. valid will be false after disposal. It is safe to dispose an invalid or already disposed ARCollaborationData. |
Equals(object) | Compares for equality. |
Equals(ARCollaborationData) | Compares for equality. |
GetHashCode() | Generates a hash code suitable for use in |
ToSerialized() | Copies the bytes that represent the serialized ARCollaborationData to a SerializedARCollaborationData. A common use case would be to send these bytes to another device over a network. |
Operators
Name | Description |
---|---|
operator ==(ARCollaborationData, ARCollaborationData) | Compares |
operator !=(ARCollaborationData, ARCollaborationData) | Compares |