As we venture into the interactive realm, we tackle the first of the combined controls, the Button control/component. In fact, the Button control is not a single entity but a combination of several different components under one banner. The Button is more of an example of what can be achieved by building/combining controls to do what you want more than anything else.
Like with the previous controls, you can add the Button from the menu or through the project Hierarchy, or using the component options (Create | UI | Button). When you add a Button control, what you actually get is the following:
An Image control
A
button
script that implements:The Selectable control (covered later)
Several
Trigger
events
A Text control (as a child)
A fairly well-built stack that draws in all the features it needs. In fact, let's look at the Button
control in code: