docs.unity3d.com
    Show / Hide Table of Contents

    Class XRHandProviderUtility.SubsystemUpdater

    Use this with your provider (if hand-tracking is enabled in your build settings) to have the subsystem automatically update. Users can subscribe to handsUpdated to respond to updates instead of waiting until a following update step. Makes use of UnityEngine.LowLevel.PlayerLoop to insert this automatic update at the beginning of the EarlyUpdate.XRUpdate loop.

    Inheritance
    Object
    XRHandProviderUtility.SubsystemUpdater
    Namespace: UnityEngine.XR.Hands.ProviderImplementation
    Syntax
    public class SubsystemUpdater
    Remarks

    If the Input System backend is enabled, this will also create and XRHandDevices which update themselves from the handsUpdated callback.

    Constructors

    SubsystemUpdater(XRHandSubsystem)

    Initializes and returns an instance of XRHandProviderUtility.SubsystemUpdater. You should create this in your plug-in once the XRHandSubsystem is created.

    Declaration
    public SubsystemUpdater(XRHandSubsystem subsystem)
    Parameters
    Type Name Description
    XRHandSubsystem subsystem

    The XRHandSubsystem to update automatically.

    Methods

    Destroy()

    Destroys the automatic updating of the XRHandSubsystem. You should call this from your plug-in when calling Destroy on the subsystem.

    Declaration
    public void Destroy()

    Start()

    Starts the automatic updating of the XRHandSubsystem. You should call this from your plug-in when calling Start on the subsystem.

    Declaration
    public void Start()

    Stop()

    Stops the automatic updating of the XRHandSubsystem. You should call this from your plug-in when calling Stop on the subsystem.

    Declaration
    public void Stop()
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023