docs.unity.cn
Search Results for

    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
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.XR.Hands.ProviderImplementation
    Assembly: solution.dll
    Syntax
    public class XRHandProviderUtility.SubsystemUpdater
    Remarks

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

    Constructors

    Name Description
    SubsystemUpdater(XRHandSubsystem)

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

    Methods

    Name Description
    Destroy()

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

    Start()

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

    Stop()

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

    In This Article
    Back to top
    Copyright © 2023 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)