API reference
API reference
Select your platform
No SDKs available
No versions available

ScrollInputProvider Class

Extends MonoBehaviour
This class utilizes the IAxis2D interface to extract horizontal and vertical axis input data, and the IInteractorView interface to associate the scrolling input with a specific Interactor<TInteractor,TInteractable>.
The combination of these two interfaces enables this class to provide scrolling input data that can be used to drive scrolling behavior for various PointableCanvas elements in the Interaction SDK.

Properties

IAxis2D Axis2D[Get]
IInteractorView InteractorView[Get]

Member Functions

Injects all dependencies into this instance, including the 2D axis input and interactor view.
This method is used to initialize the scroll input provider with the required dependencies.
Parameters
axis2D
The IAxis2D input that will be used to extract horizontal and vertical axis data.
interactorView
The IInteractorView view that will be associated with this scroll input provider.
Injects the 2D axis input dependency into this instance, allowing for horizontal and vertical axis data extraction.
This method is used to set the 2D axis input that will be used by the scroll input provider.
Parameters
axis2D
The IAxis2D input that will be used to extract horizontal and vertical axis data.
Injects the interactor view dependency into this instance, associating it with the scroll input provider.
This method is used to set the interactor view that will be used by the scroll input provider.
Parameters
interactorView
The IInteractorView view that will be associated with this scroll input provider.
Did you find this page helpful?