Class ScrollInput | UIWidgets | 1.5.4-preview.12
docs.unity3d.com
    Show / Hide Table of Contents

    Class ScrollInput

    Inheritance
    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
    Nullable<Single> bufferSize
    Nullable<Single> scrollScale

    Methods

    getDeviceId()

    Declaration
    public int getDeviceId()
    Returns
    Type Description
    Int32

    getPointerPosX()

    Declaration
    public float getPointerPosX()
    Returns
    Type Description
    Single

    getPointerPosY()

    Declaration
    public float getPointerPosY()
    Returns
    Type Description
    Single

    getScrollDelta(Single)

    Declaration
    public Vector2 getScrollDelta(float deltaTime)
    Parameters
    Type Name Description
    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
    Single deltaX
    Single deltaY
    Single pointerX
    Single pointerY
    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