docs.unity.cn
    Show / Hide Table of Contents

    Class XRParticipantSubsystem.Provider

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

    Inheritance
    Object
    XRParticipantSubsystem.Provider
    Namespace: UnityEngine.XR.ARSubsystems
    Syntax
    public abstract class Provider

    Methods

    Destroy()

    Invoked to shutdown and destroy the participant subsystem. The implementation should release any resources required by the subsystem. If the subsystem is running, Stop() will always be called before Destroy().

    Declaration
    public virtual void Destroy()

    GetChanges(XRParticipant, Allocator)

    Get the changed (added, updated, and removed) participants 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).

    Allocator allocator

    An Allocator to use when allocating the returned NativeArrays.

    Returns
    Type Description
    TrackableChanges<XRParticipant>

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

    Start()

    Invoked to start the participant subsystem.

    Declaration
    public virtual void Start()

    Stop()

    Invoked to stop the participant subsystem.

    Declaration
    public virtual void Stop()
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Monday, November 7, 2022
    Terms of use