Enum ScaleMode
Namespace: UnityEngine.XR.Interaction.Toolkit
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
public enum ScaleMode
Fields
Name | Description |
---|---|
Distance | Distance scale mode: The scale is based on the distance between 2 physical (or virtual) inputs, such as the pinch gap between fingers where the distance is calculated based on the screen DPI, and delta from the previous frame. This mode is typically used with XRScreenSpaceController. |
Input | Input scale mode: The scale is represented by a range of -1 to 1. This mode is typically used with ActionBasedController, where the value is based on the scale toggle and scale delta input actions. |
None | No scale mode is active or supported. Use this when a controller does not support scaling or when scaling is not needed. |