Skip to reading
The GUI Designer

Fit the picture without changing the frame

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

Select an Image and open Type Settings. Content Fit controls the foreground picture; the four margins inset that picture inside the same element frame.

Figure 15. The same imported picture in four frames. Contain, stretch, cover and tile make different choices about empty space, cropping and repetition.

Source table from Fit the picture without changing the frame, page 20
FitWhat happens
containShows the whole picture at its original proportions. Empty space may remain around it.
stretchFills the frame exactly. The picture can look stretched if the shapes do not match.
coverFills the frame while keeping proportions. Some edges of the picture may be cropped.
tileRepeats the image across the available area. Useful for a repeatable texture.

Use the right setting for the right layer#

Changing Background Fit does not change an Image element's foreground Content Fit. Likewise, increasing a content margin does not move the element itself. Use General for the frame's position and size.

For a decorative animated image, use Animation Frame Asset IDs and Image Animation FPS in Type Settings. Enter the imported frame IDs in the intended order. Keep this separate from a character portrait's speech and lip-sync setup.

Check alpha transparency in the source artwork as well as the chosen fit. A solid rectangle baked into the picture remains a solid rectangle even if the element behind it has a transparent background.

Page 20 of 57Permalink
Go to page