Skip to reading
The GUI Designer

Anchor the whole GUI separately

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

An element anchor works inside one GUI. Anchor Entire GUI positions the complete interface inside the game viewport. Use the latter to center a menu without recalculating every child element.

1. Select the Workshop Menu, clear the element selection or click GUI Window, and open Layout & Appearance.

2. Choose Center for Anchor Entire GUI.

3. Set Anchor Offset X and Anchor Offset Y to 0.

4. Apply and save. Run the game and open the menu to check its placement.

Figure 7. Center places the whole menu in the viewport. Use Authored Coordinates when you want Runtime X and Y to determine its position.

Design size, game size and editor zoom#

The walkthrough uses a 1280 by 720 game design. The HUD uses that whole area; the menu uses a smaller canvas. The runtime presents the design within the game viewport, while editor zoom only changes how much fits on your workspace.

Leave comfortable margins around controls. A menu that fits at one resolution can still contain clipped text, small hit areas or overlapping elements after you change its canvas size or translate the wording.

The surface and reflection controls in this tab concern the GUI's visual finish. They do not make a live mirror of a character or a room. Element appearance is covered separately in Chapter 10.

Page 12 of 57Permalink
Go to page