docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum ScaleMode

    Enum representing the two modes of scaling: Input and Distance.

    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.

    See Also
    scaleMode
    In This Article
    Back to top
    Copyright © 2024 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)