This documentation is for a prerelease version of O3DE. Click here to switch to the latest release, or select a version from the dropdown.

Version:

Setting Canvas Size in Preview

Change your game UI canvas size in UI Editor Preview to visualize how your canvas might look at different screen resolutions and to see how the interactive elements change state. Changing your canvas size in Preview does not affect the canvas size at which you are authoring the UI canvas-that is controlled in the UI Editor.

Setting your canvas size in Preview is useful when designing games that run on devices that have multiple resolutions. You can see at different resolutions how an element’s size and position changes based on the settings of its Transform2D properties, such as anchors, offsets, and the Scale to Device settings. For more information on the Transform2D properties, see Transform2D Component.

The Canvas scale in the toolbar shows the scale at which the canvas is displayed. If the Preview canvas size selected is larger than the viewport size, the canvas you are previewing is drawn at a reduced scale.