docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IXRScaleValueProvider

    Defines an interface for scale value providers.

    Namespace: UnityEngine.XR.Interaction.Toolkit.Interactors
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    [MovedFrom("UnityEngine.XR.Interaction.Toolkit")]
    public interface IXRScaleValueProvider
    Remarks

    Implementations of this interface provide a mechanism to get a scale value (a change in scale) from an input control, such as a gesture or controller stick movement. The provided scale value is in the mode supported by the upstream controller.

    Properties

    scaleMode

    Property representing the scale mode that is supported by the implementation of the interface.

    Declaration
    ScaleMode scaleMode { get; set; }
    Property Value
    Type Description
    ScaleMode
    See Also
    ScaleMode

    scaleValue

    This is the current scale value for the specified scale mode. This value should be updated by the implementing class when other inputs are handled during the standard interaction processing loop.

    Declaration
    float scaleValue { get; }
    Property Value
    Type Description
    float
    See Also
    scaleMode

    See Also

    XRRayInteractor
    In This Article
    Back to top
    Copyright © 2025 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)