docs.unity.cn
    Show / Hide Table of Contents

    Class XRParticipantSubsystem.Provider

    The API this subsystem uses to interact with different provider implementations.

    Inheritance
    Object
    UnityEngine.SubsystemsImplementation.SubsystemProvider
    UnityEngine.SubsystemsImplementation.SubsystemProvider<XRParticipantSubsystem>
    XRParticipantSubsystem.Provider
    Inherited Members
    UnityEngine.SubsystemsImplementation.SubsystemProvider<UnityEngine.XR.ARSubsystems.XRParticipantSubsystem>.TryInitialize()
    UnityEngine.SubsystemsImplementation.SubsystemProvider<UnityEngine.XR.ARSubsystems.XRParticipantSubsystem>.Start()
    UnityEngine.SubsystemsImplementation.SubsystemProvider<UnityEngine.XR.ARSubsystems.XRParticipantSubsystem>.Stop()
    UnityEngine.SubsystemsImplementation.SubsystemProvider<UnityEngine.XR.ARSubsystems.XRParticipantSubsystem>.Destroy()
    UnityEngine.SubsystemsImplementation.SubsystemProvider.running
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.XR.ARSubsystems
    Syntax
    public abstract class Provider : SubsystemProvider<XRParticipantSubsystem>

    Methods

    GetChanges(XRParticipant, Allocator)

    Get the changed participants (added, updated, and removed) since the last call to GetChanges(XRParticipant, Allocator).

    Declaration
    public abstract TrackableChanges<XRParticipant> GetChanges(XRParticipant defaultParticipant, Allocator allocator)
    Parameters
    Type Name Description
    XRParticipant defaultParticipant

    The default participant. This should be used to initialize the returned NativeArrays for backwards compatibility. See TrackableChanges(Void*, Int32, Void*, Int32, Void*, Int32, T, Int32, Allocator).

    Unity.Collections.Allocator allocator

    An Allocator to use when allocating the returned NativeArrays.

    Returns
    Type Description
    TrackableChanges<XRParticipant>

    TrackableChanges<T> that describes the participants that have been added, updated, and removed since the last call to GetChanges(XRParticipant, Allocator). The changes should be allocated using allocator.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, July 14, 2023