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.ReferenceEquals(object, object)
    object.GetType()
    Namespace: UnityEngine.XR.ARSubsystems
    Assembly: solution.dll
    Syntax
    public struct XRParticipant : ITrackable, IEquatable<XRParticipant>
    Remarks

    A participant is another device in a multi-user collaborative session.

    Constructors

    Name Description
    XRParticipant(TrackableId, Pose, TrackingState, IntPtr, Guid)

    Constructs an XRParticipant. XRParticipants are generated by GetChanges(Allocator).

    Properties

    Name Description
    defaultParticipant

    An XRParticipant with default values. This is mostly zero-initialized, except for objects like Poses, which are initialized to Pose.identity.

    nativePtr

    A native pointer associated with this participant. The data pointer to by this pointer is implementation defined.

    pose

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

    sessionId

    This participant's session identifier.

    trackableId

    The TrackableId associated with this participant.

    trackingState

    The TrackingState associated with this participant.

    Methods

    Name Description
    Equals(object)

    Tests for equality.

    Equals(XRParticipant)

    Tests for equality.

    GetHashCode()

    Generates a hash suitable for use with containers like HashSet and Dictionary.

    Operators

    Name Description
    operator ==(XRParticipant, XRParticipant)

    Tests for equality. Same as Equals(XRParticipant).

    operator !=(XRParticipant, XRParticipant)

    Tests for inequality. Same as !Equals(XRParticipant).

    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)