Select Indicator

MenuSelector.cs

Size: 1.74 KB

You need to login to download this file.

  1. Create a new 'canvas'
  2. Give it a image
  3. Copy this image (5 times)
    1. And put them next to each other

  1. Copy every image and overlapse it with the image you want to see when its selected or active
  2. Create an empty object and add the MenuSelector.cs script
  3. Add only the images you want to show when it's active

  1. Add the function to a button
    1. and drag the object that holds the script into the new created  function 

  1. Go to "No Function" and open MenuSelector and search for 'SelectNextItem' for going further or 'SelectPreviousItem' to go back
  2. Now do the same thing for the other buttun but do the opposite

Make sure the image you want to see when active or selected is overlapsing the background image. You can change this by putting the active image under the background image in the hierarchy.

recommended