cancel
Showing results for 
Search instead for 
Did you mean: 

Unity Scroll Rect mapping to Gear VR touchpad

lXg99
Explorer
I have a working UI implementation via Scroll Rect which runs fine with the mouse in the editor. Is it at all possible to remap  inputs so that the Gear VR touchpad works with that too?
1 REPLY 1

cloud_canvas
Expert Protege
Yep. All I did was forward the Vector2 of OVRInput.Axis2D.PrimaryTouchpad to the ScrollRect's velocity when you're hovering over it with whatever your hit testing system is, with some scaling and extra logic for direction and stuff of course.
Samsung Galaxy S8 (Snapdragon 835), Gear VR (2017), Oculus Go (64GB), Unity 2018.3.14f1