Search Unity

Cycle through background images with buttons

Discussion in 'iOS and tvOS' started by Ohyouknow, Apr 24, 2019.

  1. Ohyouknow

    Ohyouknow

    Joined:
    Oct 23, 2013
    Posts:
    124
    Hi all,

    I've search all throughout google and can't seem to find a fix for what I believe is most likely the easiest fix ever for someone that knows coding, I however am more of an artist, than coder so any help is appreciated.

    I have a scene which has 6 backgrounds. There are 6 buttons in the UI which when pressed will change the background to the images of the character they saw on the button(s). My issue is, I have the layers sorted 1-6, but once you go past the 1st layer, the buttons will no longer bring the background back to the front. Essentially, what I have right now is buttons that work once, but I would like to be able to cycle through and anytime I press a button, it will bring it's image to the front.

    Any help?
     
  2. Ohyouknow

    Ohyouknow

    Joined:
    Oct 23, 2013
    Posts:
    124
  3. Ohyouknow

    Ohyouknow

    Joined:
    Oct 23, 2013
    Posts:
    124