Class ScrollInput | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class ScrollInput

    Inheritance
    System.Object
    ScrollInput
    Namespace: Unity.UIWidgets.editor
    Syntax
    public class ScrollInput

    Constructors

    ScrollInput(Nullable<Single>, Nullable<Single>)

    Declaration
    public ScrollInput(float? bufferSize = default(float? ), float? scrollScale = default(float? ))
    Parameters
    Type Name Description
    System.Nullable<System.Single> bufferSize
    System.Nullable<System.Single> scrollScale

    Methods

    getDeviceId()

    Declaration
    public int getDeviceId()
    Returns
    Type Description
    System.Int32

    getPointerPosX()

    Declaration
    public float getPointerPosX()
    Returns
    Type Description
    System.Single

    getPointerPosY()

    Declaration
    public float getPointerPosY()
    Returns
    Type Description
    System.Single

    getScrollDelta(Single)

    Declaration
    public Vector2 getScrollDelta(float deltaTime)
    Parameters
    Type Name Description
    System.Single deltaTime
    Returns
    Type Description
    Vector2

    onScroll(Single, Single, Single, Single, Int32)

    Declaration
    public void onScroll(float deltaX, float deltaY, float pointerX, float pointerY, int buttonId)
    Parameters
    Type Name Description
    System.Single deltaX
    System.Single deltaY
    System.Single pointerX
    System.Single pointerY
    System.Int32 buttonId
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023