How to create reel/slider with mobile controls
How can I create a reel/slider with mobile game controls so that it looks something like this?
The slider is normally non visible, and can be accessed if I slide my finger from the right side of the screen to the left. The slider allows me to switch my current weapon and use items in my inventory.
This is my current setup in Unity.
I can figure out the inventory portion of the slider, as there are many tutorials out there on an inventory system, and how to make the slider move based on touch, using something similar to a mobile joystick script, but I can't figure out how to make the slider so that it:
Can "jump" from icon to icon (not have the slider be completely fluid/prevent it from stopping in-between item icons)
Detect what item/slot the slider is currently on (in the case of the example, the item that will be used is the icon in the center of the screen.
Make the icons more transparent the further away it is from the icon in use (I'm guessing that I would have to set the alpha channel value in the color settings of the item to a lower value, but I'm not sure how to detect the icon in use and count how many icons away the other icons are from the one in use.