You can instantiate existing UI(User Interface) Allows a user to interact with your application. Unity currently supports three UI systems. More info
See in Glossary Documents (UXML) as Templates inside your current UI Document as Template Instances, similar to how PrefabsAn asset type that allows you to store a GameObject complete with components and properties. The prefab acts as a template from which you can create new object instances in the scene. More info
See in Glossary work in Unity. To use a UI document as a template, do the following:
.uxml
) you wish to instantiate.A Template Instance appears in the Hierarchy like a normal element of type TemplateContainer
. The name of the .uxml
file displays as greyed font to the right of its name. If you expand the Template Instance you can see the internal hierarchy of the instance. This internal hierarchy, as explained in Working with elements, is read-only and only shown for reference. To make edits to this hierarchy, you must edit the original UI Document.
UI Builder offers three ways to edit an original UI Document used as a Template Instance. To access these options, right-click on a Template Instance and choose:
For cases (2) and (3) above, a breadcrumb appears above the ViewportThe user’s visible area of an app on their screen.
See in Glossary indicating this state. You can repeat this action on a Template Instance inside the original Template Instance, recursively. Use the breadcrumb to go back to a parent UI Document.
Going into a Sub-Document and back to the parent document require a full save: