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,500 courses taught by industry experts or purchase this course individually.

Handling button clicks

Handling button clicks - Unity Tutorial

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

Start my 1-month free trial

Handling button clicks

- [Instructor] In this movie we're going to continue from the previous. We're going to set up this new game button, so that when we click on it the entirety of this menu will vanish and disappear. Now configuring what a button does when we click on it, is a big subject because as you click the button it could execute a ton of code. And we're going to see how scripting works in a completely different section of the UT certification courses. In this one however, we're going to see how without any code at all, we can click on that new game button, and make the entirety of this menu disappear. It's really straightforward. To start, I'm going to select the New Game button that we created. And move to the inspector. And in the button component under the On Click field that's where we get to choose what happens when we click this button. On Click. And right now it says the list is empty. Indicating that when we click…

Contents