> For the complete documentation index, see [llms.txt](https://ss3d.gitbook.io/art-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ss3d.gitbook.io/art-guide/2d/ui-elements/composite-elements.md).

# Composite Elements

### Composite Elements

Some UI elements can have variants to be switched for one another in case of different circumstances. In that case the variant switch needs to be seamless, meaning that the images for those elements need to be of the same size and with the same base position.

<figure><img src="https://lh3.googleusercontent.com/Lu3vp2XXXPZvDTKGgYPix5GX9UhHVfTpAhYi0Vmi48K7Gwa-3VuAMWFctu-gBv5y-mFzcg6c2OFQNm1eCGom4QVKcwiY1LqbDKzy62-8Qw0rEBP_GzpiDLI1cYPvI-OkJV6vsZj-Utmm" alt=""><figcaption><p>Thermometer variant files</p></figcaption></figure>

<figure><img src="https://lh5.googleusercontent.com/yO9sMV6n9unzCek8BqNpn_QlL3eWhadkX6re-iBbN00z4pxWl4LphPtAWWY9vXBmT-M7wrGcW4gKebWhehi40Tts9f5bYAaz4p6NmCifbWyVISVFVmK4L7ouUy3K-SMsr1tA-AW2VQb0" alt=""><figcaption><p>Thermometer variants’ concept.</p></figcaption></figure>

Note the bar, it is missing from the variant files themselves, but can be added within unity and be programmably extended or shrunk from the bottom of the thermometer.

UI elements can also consist of several parts to be layered on top of each other and programmed to be moved, colored or otherwise changed separately.&#x20;

As an example, the atmospheric pressure meter consists of 3 parts: the base with a dial, the arrow to rotate and indicate the overall pressure on the base’s dial and an exclamation mark, to be colored and/or flashing in case of dangerous atmospheric conditions. The text for the exact atm amounts is added within Unity, using accepted project fonts, so it can also be changed programmably.&#x20;

<figure><img src="https://lh3.googleusercontent.com/pz4QFbIqss7BPcPDDMG8YcP-XXAIHDzVsr-cS9IE48Ir7gPmxvBsxzN0ANijv947vcr32a4Bj-YgaIUp7RP9IS6_d69fjVwnHk9MqiDf5A4E-evrRCR0nxodT2EEO0USqSbabVSAgM8V" alt=""><figcaption><p>Pictured: the ATM sensor UI element in 3 parts and the preview of them put together.</p></figcaption></figure>

Same principle applies to the target dummy, surgery dummy and other complex UI elements.

<figure><img src="/files/cul9bsTHOtOT9ji1zt8A" alt=""><figcaption><p>Pictured: several examples of complex composite UI elements.</p></figcaption></figure>

<figure><img src="https://lh6.googleusercontent.com/vLY8OTZOhWBLj1gW0yNgCkVX2DBAchLmhXmWGJMLZWhF0XhHW8rDY6iTNb5Wfnzu5KwkYN-HfamlrTEN5LNjnmDtoqRHtkFhQBwAsf61JMShJmhyukAIO-GPevTPfxoPQZ_t6rGRLpzH" alt=""><figcaption><p>Pictured: a collection of layers for said elements. Note that the according naming of each part should be indicative and consistent within each element.</p></figcaption></figure>

!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ss3d.gitbook.io/art-guide/2d/ui-elements/composite-elements.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
