docs.unity3d.com
    Show / Hide Table of Contents

    Enum HandMenu.UpDirection

    Enum dictating the up direction used in hand menu calculations.

    Namespace: UnityEngine.XR.Interaction.Toolkit.UI.BodyUI
    Syntax
    public enum UpDirection

    Fields

    Name Description Value
    WorldUp

    Use the global world up direction (up).


    0
    TransformUp

    Use this GameObject's world up direction (up). Useful if this component is on a child GameObject of the XR Origin and the user can teleport to walls.


    1
    CameraUp

    Use the main camera up direction. The menu will stay oriented with the head when the user tilts their head left or right.


    2
    See Also
    handMenuUpDirection
    Back to top
    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