Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

UI button changes back to its original color after being pressed

Discussion in 'UGUI & TextMesh Pro' started by Larpushka, Nov 9, 2015.

  1. Larpushka

    Larpushka

    Joined:
    Jan 6, 2015
    Posts:
    214
    So I have a canvas with a UI "play" button. I changed the UI button color where it says

    Normal Color
    Highlighted Color
    Pressed Color
    Disabled Color

    To a different color (green), using a nice button sprite I found . Yet after I press the button, it performs a command then goes back to its original color (red) and then it stays in its original color (red). I wanna make it so it goes back to the color I predetermined it to be (green) after being pressed. How do I do that?
     
  2. Larpushka

    Larpushka

    Joined:
    Jan 6, 2015
    Posts:
    214
    Oh nevermind, I figured out why.... It's because I'm stopping time with a script.