Edit the Input for navigating the Grid

Yago

New member
Hello!

Right now I have a Grid which selects the Item using "A" (to the left) and "D" ( to the right ).
ItemSwapScroll.JPG

The Script "Item Info Grid" allows us to choose the Input "Next" and "Previous" to move from Tab to Tab.
There is a way were we can Modify the Item selection in the Grid from above?
I would like to replace the inputs: "A" with Scrollup and "D" with ScrollDown.
Can be this done within the UIS like with the Item Info Grid example?
I am pretty newbie in Unity in General and started exploring opsive assets,
any help or direction would be greatly appreciated!
Thank you in advance!

1.JPG
 
The ItemViewSlotContainers (Inventory Grid, Hotbar, etc...) are navigated using the Default Unity UI Event System. The component that controls all the UI is usually this one:
1624868493132.png
It will be slightly different if you use other Input systems.

If you wish to change how to navigate all UI you'll need to define the input there.

Unfortunatly there's no built-in way to have different inputs for each ItemViewSlotContainer.
My advice is either have a state that changes the Standable Input Module input names at runtime, such that you can change how UI is navigated, or you disable all default navigation for the slots in the grid and instead use a custom script to navigate it.

1624868752578.png

I hope that makes sense, I'm sorry there's nothing built-in for your use case.
 
Hello!

Thank you a lot for the answer! Much appreciated.
I will try your proposals and hope I can make it work!

Best,
 
Top