docs.unity3d.com
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.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.Hands.ProviderImplementation
    Assembly: Unity.XR.Hands.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

    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()
    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)