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
Dequeue
This struct is not thread-safe, but it may be constructed and disposed on any thread.
Constructors
Name | Description |
---|---|
ARCollaboration |
Constructs an ARCollaborationData from a byte array.
Check valid after construction to ensure |
ARCollaboration |
Constructs an ARCollaborationData from a byte array.
Check valid after construction to ensure |
ARCollaboration |
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(ARCollaboration |
Compares for equality. |
Get |
Generates a hash code suitable for use in |
To |
Copies the bytes that represent the serialized ARCollaboration |
Operators
Name | Description |
---|---|
operator ==(ARCollaboration |
Compares |
operator !=(ARCollaboration |
Compares |