docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XRParticipant

    The session-relative data associated with a participant.

    Implements
    ITrackable
    IEquatable<XRParticipant>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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 Pose associated with this participant.

    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
    XRParticipantSubsystem

    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
    XRParticipantSubsystem

    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
    XRParticipantSubsystem

    pose

    The Pose, in session space, associated with this participant.

    Declaration
    public Pose pose { get; }
    Property Value
    Type Description
    Pose
    See Also
    XRParticipantSubsystem

    sessionId

    This participant's session identifier.

    Declaration
    public Guid sessionId { get; }
    Property Value
    Type Description
    Guid
    See Also
    XRParticipantSubsystem

    trackableId

    The TrackableId associated with this participant.

    Declaration
    public TrackableId trackableId { get; }
    Property Value
    Type Description
    TrackableId
    See Also
    XRParticipantSubsystem

    trackingState

    The TrackingState associated with this participant.

    Declaration
    public TrackingState trackingState { get; }
    Property Value
    Type Description
    TrackingState
    See Also
    XRParticipantSubsystem

    Methods

    Equals(object)

    Tests for equality.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare against.

    Returns
    Type Description
    bool

    true if obj is of type XRParticipant and Equals(XRParticipant) also returns true.

    Overrides
    ValueType.Equals(object)
    See Also
    XRParticipantSubsystem

    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

    true if other is equal to this XRParticipant.

    See Also
    XRParticipantSubsystem

    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 HashSet and Dictionary.

    Overrides
    ValueType.GetHashCode()
    See Also
    XRParticipantSubsystem

    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

    true if lhs is equal to rhs.

    See Also
    XRParticipantSubsystem

    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

    true if lhs is not equal to rhs.

    See Also
    XRParticipantSubsystem

    Implements

    ITrackable
    IEquatable<T>

    See Also

    XRParticipantSubsystem
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)