Search Unity

Multiple image for button

Discussion in '2D' started by samim99, Sep 9, 2019.

  1. samim99

    samim99

    Joined:
    Apr 10, 2018
    Posts:
    16
    Hi,

    I have created a border, body and two glowing parts for a button in Photoshop.

    My idea is to have border as parent then body image and glow images over it, then change the body's colour in each level, is that good idea?

    so far when testing in each resolution and making it bigger looks fine.

    want your input please.
     
  2. SAVVU

    SAVVU

    Joined:
    Dec 6, 2015
    Posts:
    20
    Totally fine!
    Put a script on the button parent with Color variables in it. Check with a function of this script in which level you are and apply the right color to the body and glow!

    Otherwise when your levels are different scenes you could just place the buttons (as prefabs) in it and change the color as you like in the inspector