9. Give an element its images
Import your pictures through Asset Designer first. Then select the GUI element and open Images. Choose from the project assets rather than typing a path to a file elsewhere on your computer.
| Images field | What it supplies |
|---|---|
| Media Asset | The foreground picture of an Image, the content of a model/video element, or a normal background on an ordinary control. |
| Background Image | An explicit backdrop. On an ordinary control it takes priority over an image supplied through Media Asset. |
| Hover Image | The pointer-over artwork. On an Image element it replaces the foreground picture. |
| Clicked Image | The artwork used while a left press is held. It is a temporary state. |
| Background Fit | How the backdrop is fitted into the element frame. |
Figure 14. The image-state fields are together in Images. This example uses visibly different Clockmaker icons to make the states easy to test.
For an Image element, Media Asset and Background Image have separate jobs. A key icon can remain the foreground while a paper texture sits behind it. The foreground has its own Content Fit in Type Settings.
The state pictures in this guide are a test, not a rule for artwork. For a finished game, use matching normal, hover and clicked versions so the control still looks like the same object.
