From the course: Cert Prep: Unity Certified Associate Game Developer UI and 2D Games

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Button states

Button states - Unity Tutorial

From the course: Cert Prep: Unity Certified Associate Game Developer UI and 2D Games

Start my 1-month free trial

Button states

- [Instructor] In the previous movie, we created our new game button at the top center of our background here. And it's looking good. If I switched to the games tab you can already see the buttons set up inside the view port. I can click play on the tool bar and we have a button. I can click it and you'll see there's even some change here in the appearance of the button as I interact with it, with my mouse. And that's what I want to look at customizing in this video How we can change the color of the button depending on what we're doing with it. So that when we're hovering the mouse, it's one color. And when we're clicking on the button it's a different color, really easy to set this up I'm going to select the button object. And from the inspector, check out the button component. It's beneath the image component that defines the background for the button. You'll see here that under the button component we have several…

Contents