How to scroll through a scroll box on a 3D widget using thumbsticks in VR.

I have a 3D widget with a lot of text on it that the player needs to scroll through. I would rather the player be able to use their thumbstick, or maybe just drag the entire window to scroll rather than use the scroll bar. I’m fairly new to using Enhanced Input so finding this a little difficult and couldn’t find much information on doing this in VR.

1 Like

Have you found the solution yet? Actually, I am also stuck in this problem

Have you found the solution yet? Actually, I am also stuck in this problem.

Hi just posting my solution here:

  1. Create a new InputActionBluprint (mine is called IA_UI_Scroll) > Set it’s value to Axis1D
  2. In your existing InputMappingContext (mine is called IMC_Default), add the IA_UI_Scroll in it as a Mapping, then set IA_UI_Scroll’s key value to whatever thumbstick you want to scroll with (mine is Oculus Touch (R) Thumbstick Y-Axis).
  3. Then in your VRPawn or Controller, add a WidgetInteractionComponent (mine is called ScrollWidgetInteraction) and set it’s Interaction Source to “Center Screen” and EnableHitTesting to True.
  4. Then just follow my blueprints. The .25 is just creating a deadzone for less issues, but it should be optional. 40 is a multiplier for the scroll.