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 |