> 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="https://2317494317-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fo88TIFUbxlEVDM0ZH62q%2Fuploads%2FYYZbYQ8GWYR7TFO9cWpX%2Fimage.png?alt=media&amp;token=3d84e3bd-e5f1-4c59-b3b1-9e6bc62fcd5a" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
