Working with buttons
Now that we have the text displaying correctly, let's add the ability to move from the main menu into the game properly. However, unlike our title, for things that we want our players to touch, it's a good idea to make these buttons the same size in each device, as our fingers are the same size, no matter what device we are using. To show a possible solution for this, we will create a new Canvas using a different scaling technique.
- We will first rename our current Canvas object to
Canvas - Scale Screen
. This way, we can easily tell whether we are using the correct canvas for this or not.
- Now that we have that one ready, we can create our new one. Go to the top menu bar and then select
GameObject
|UI
|Canvas
. Rename this new Canvas toCanvas - Scale Physical
. Then, under theCanvas Scaler
component, changeUI Scale Mode
toConstant Physical Size
:

Using this method, Unity will attempt to scale the size of this canvas so that each element has the same physical size, regardless...