Struct XRParticipant
The session-relative data associated with a participant.
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Assembly: Unity.XR.ARSubsystems.dll
Syntax
public struct XRParticipant : ITrackable, IEquatable<XRParticipant>
Remarks
A participant is another device in a multi-user collaborative session.
Constructors
XRParticipant(TrackableId, Pose, TrackingState, IntPtr, Guid)
Constructs an XRParticipant. XRParticipants are generated by GetChanges(Allocator).
Declaration
public XRParticipant(TrackableId trackableId, Pose pose, TrackingState trackingState, IntPtr nativePtr, Guid sessionId)
Parameters
| Type | Name | Description |
|---|---|---|
| TrackableId | trackableId | The TrackableId associated with this participant. |
| Pose | pose | The |
| TrackingState | trackingState | The TrackingState associated with this participant. |
| IntPtr | nativePtr | A native pointer associated with this participant. |
| Guid | sessionId | The session from which this participant originated. |
See Also
Properties
defaultParticipant
An XRParticipant with default values. This is mostly zero-initialized,
except for objects like Poses, which are initialized to Pose.identity.
Declaration
public static XRParticipant defaultParticipant { get; }
Property Value
| Type | Description |
|---|---|
| XRParticipant |
See Also
nativePtr
A native pointer associated with this participant. The data pointer to by this pointer is implementation defined.
Declaration
public IntPtr nativePtr { get; }
Property Value
| Type | Description |
|---|---|
| IntPtr |
See Also
pose
The Pose, in session space, associated with this participant.
Declaration
public Pose pose { get; }
Property Value
| Type | Description |
|---|---|
| Pose |
See Also
sessionId
This participant's session identifier.
Declaration
public Guid sessionId { get; }
Property Value
| Type | Description |
|---|---|
| Guid |
See Also
trackableId
The TrackableId associated with this participant.
Declaration
public TrackableId trackableId { get; }
Property Value
| Type | Description |
|---|---|
| TrackableId |
See Also
trackingState
The TrackingState associated with this participant.
Declaration
public TrackingState trackingState { get; }
Property Value
| Type | Description |
|---|---|
| TrackingState |
See Also
Methods
Equals(object)
Tests for equality.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The |
Returns
| Type | Description |
|---|---|
| bool |
|
Overrides
See Also
Equals(XRParticipant)
Tests for equality.
Declaration
public bool Equals(XRParticipant other)
Parameters
| Type | Name | Description |
|---|---|---|
| XRParticipant | other | The other XRParticipant to compare against. |
Returns
| Type | Description |
|---|---|
| bool |
|
See Also
GetHashCode()
Generates a hash suitable for use with containers like HashSet and Dictionary.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash suitable for use with containers like |
Overrides
See Also
Operators
operator ==(XRParticipant, XRParticipant)
Tests for equality. Same as Equals(XRParticipant).
Declaration
public static bool operator ==(XRParticipant lhs, XRParticipant rhs)
Parameters
| Type | Name | Description |
|---|---|---|
| XRParticipant | lhs | The left-hand side of the comparison. |
| XRParticipant | rhs | The right-hand side of the comparison. |
Returns
| Type | Description |
|---|---|
| bool |
|
See Also
operator !=(XRParticipant, XRParticipant)
Tests for inequality. Same as !Equals(XRParticipant).
Declaration
public static bool operator !=(XRParticipant lhs, XRParticipant rhs)
Parameters
| Type | Name | Description |
|---|---|---|
| XRParticipant | lhs | The left-hand side of the comparison. |
| XRParticipant | rhs | The right-hand side of the comparison. |
Returns
| Type | Description |
|---|---|
| bool |
|