docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Field updatedHands

    A callback invoked for each hand update.

    Namespace: UnityEngine.XR.Hands
    Assembly: solution.dll
    Syntax
    public Action<XRHandSubsystem, XRHandSubsystem.UpdateSuccessFlags, XRHandSubsystem.UpdateType> updatedHands
    Returns
    Type Description
    Action<XRHandSubsystem, XRHandSubsystem.UpdateSuccessFlags, XRHandSubsystem.UpdateType>
    Remarks

    This callback is invoked twice per frame, once near the MonoBehaviour.Update event and once near the UnityEngine.Application.onBeforeRender event. The BeforeRender update provides the lowest latency between hand motion and rendering, but occurs too late to affect physics. In addition, trying to perform too much work during the BeforeRender callback can negatively impact framerate. For best results, update game logic affected by hand tracking in a Dynamic update and update hand visuals in a BeforeRender update.

    The delegate assigned to this property must take three parameters, which have the following types and assigned values when the callback is invoked:

    • XRHandSubsystem: contains a reference to this subsystem.
    • XRHandSubsystem.UpdateSuccessFlags: the flags indicating which data could be updated.
    • XRHandSubsystem.UpdateType: the update timing.
    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)