Class 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 |