How to navigate through a menu by scrolling (input system)?
Hi,
I have an overlay canvas with a few buttons, each of them spawning a function, quite like the minecraft overlay I think.
I can navigate through it with the keyboards arrows or wasd, but I would like to do it with the mouse scroll, and for now, it doesn't work.
I added the binding to the Navigate action of my InputActions script (passthrough, mousescroll, vector2, normalized) .
I created a test function that log the ctx.ReadValue(Vector2) when the Navigate action is fired, keyboard and scroll mouse both send the same values (0.0, 1.0), (0.0, 0.0), (0.0, -1.0). but only the keyboard input actually effect the UI.
Now I could do the scroll behavior via script, but for the purpose of learning and doing things the simplest way, I wonder if someone knows how to bind the scrollMouse to the Navigate action?
BTW, navigation in the buttons is set to explicit and vertical, it is adapted to the mouse.
Your answer
Follow this Question
Related Questions
Switching between mouse/keyboard and controller for UI navigation (using Input System) 0 Answers
Navigation between world space and screen space UI 0 Answers
Selectable Navigation Property Problem 0 Answers
Unity automatic UI navigation events get messed up after entering playmode 0 Answers
Keyboard GUI navigation priority 0 Answers