# Minimal UI

Minimal UI is a new set of modern drawers for bind fields built on UI Toolkit. It is simpler, more compact and customizable than the legacy UI (here named Verbose UI). The thinking behind Minimal UI is to try to have as much bind field control and information as possible in a single line of Unity Inspector. Going forward, this UI will become the standard one. It also has some exclusive additional features, such as Group rebinding and more.

<figure><img src="https://2360058278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3rw9jjjjlPycieM3U3MU%2Fuploads%2FUhjRrW9K5phSayVX6Nob%2FMinimalUI.png?alt=media&#x26;token=9cc41e83-6a9f-4e02-99cf-6f2430058ba6" alt="" width="375"><figcaption><p>Minimal UI</p></figcaption></figure>

The Minimal UI is optional, and can be enabled in Binding Settings. Here are some of its features:

* Drag and drop objects to change source and/or path:\
  No need to expand the Source Field to change the source, just drag the object over the path field and the path popup will show up automatically, or if the new object is compatible with current path, it will only replace it.<br>

<figure><img src="https://europe1.discourse-cdn.com/unity/original/4X/a/1/f/a1fdb5c7718d529d31eea4fac828a206cdf3078f.gif" alt="" width="375"><figcaption><p>Drag And Drop on Empty Path</p></figcaption></figure>

<figure><img src="https://europe1.discourse-cdn.com/unity/original/4X/0/b/b/0bb6055b6b7b4860b2908d9b0caf6a21eb542fba.gif" alt="" width="375"><figcaption><p>Drag and Drop and Cancel</p></figcaption></figure>

<figure><img src="https://europe1.discourse-cdn.com/unity/original/4X/c/f/8/cf82b46e1049728d35179f2cf191d8b5a677b44e.gif" alt="" width="375"><figcaption><p>Drag and Drop on compatible path</p></figcaption></figure>

* Collapse or expand additional fields:\
  Converters and Source Field are not essential all the time, they can be collapsed. The expand information is serialized and will persist with the bind field.

<figure><img src="https://europe1.discourse-cdn.com/unity/original/4X/c/f/7/cf7277a4e69b1eb9983d75eae82596068ca53f0f.gif" alt=""><figcaption><p>Hide secondary fields</p></figcaption></figure>

* Quick shortcuts, hold Ctrl (or Cmd on MacOS) and click:\
  For BindMode, it will trigger on and off the <mark style="color:orange;">LiveDebug</mark>.\
  For Source Field, it will ping the object.

<figure><img src="https://europe1.discourse-cdn.com/unity/original/4X/4/4/6/4465a5dbd8247a2a63e596ce33ab61c135978979.gif" alt="" width="563"><figcaption><p>Shortcuts</p></figcaption></figure>

* Compact Modifiers:\
  Some modifiers have only one field, and it space consuming to have the foldout only for one field. The field may be rendered directly instead of foldout. Add `[OneLineModifier]` attribute over class definition to let it render as in the examples below.

<figure><img src="https://europe1.discourse-cdn.com/unity/optimized/4X/f/a/2/fa2083cbcc012d59bcca600870a51b68225601d7_2_517x184.png" alt="" width="375"><figcaption><p>Compact Modifiers</p></figcaption></figure>

* Improved Tooltips:\
  The tooltips have been greatly improved to contain dynamic data, such as whe LiveDebug is active and the errors present in the fields. The use of different colors further enhance some aspects for tooltips.

<figure><img src="https://europe1.discourse-cdn.com/unity/original/4X/6/3/7/637ebe86c67e764a64920431d27ea0967db9c8d3.gif" alt="" width="375"><figcaption><p>Better Tooltips</p></figcaption></figure>

* Bind fields in groups. Groups are formed either by headers or by foldouts, such as complex types or arrays.\
  Currently there are 2 ways of rebinding groups of bind fields:\
  \- <mark style="color:blue;">SMART</mark>: will replace only bind fields which have paths compatible with dragged object.\
  \- <mark style="color:orange;">FORCED</mark>: will replace all bind fields regardless of path compatibility.

<figure><img src="https://europe1.discourse-cdn.com/unity/original/4X/5/b/9/5b94aae3978bb0c5fc3deb8e11aabc8a728466fb.gif" alt="" width="375"><figcaption><p>Group Rebinding</p></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://postica.gitbook.io/binding-system/product/minimal-ui.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
