Problem while scaling UI elements

Hi. I want to scale all UI elements in the canvas based in percentage of screen. I mean, if I have a button whose width is 30% width of my screen and whose height is 40% height of my screen, i want the same percentages in all screens, to all UI elements in the canvas. Position based in percentages, too. Like canvas being a static image.

Thanks, and sorry for my english.

Select your canvas in the hierarchy window. Then look in the inspector window. Your canvas should have a component called “Canvas Scaler (Script)”. You can select one of the UI Scale Modes. “Scale with screen size” is probably what you want. This canvas will now scale all children according to the settings you select.