Enum ScaleMode
Enum representing the two modes of scaling: ScaleOverTime and DistanceDelta.
Namespace: UnityEngine.XR.Interaction.Toolkit.Interactors
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[MovedFrom("UnityEngine.XR.Interaction.Toolkit")]
public enum ScaleMode
Fields
Name | Description |
---|---|
DistanceDelta | Distance scale mode: The scale is based on the delta 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 a touchscreen for mobile AR. |
None | No scale mode is active or supported. Use this when a controller does not support scaling or when scaling is not needed. |
ScaleOverTime | Scale over time mode: The scale is resized over time and represented by input in range of -1 to 1. This mode is typically used with a thumbstick input on a controller. |