Something weird im facing… several times during the development of my UI when working on the UIBuilder i hit Ctrl+S to save and one particular item “asset-switcher-template” dissapears from the layout and i see this error on the console log…
The template do exist and it is even listed on the proyect library…
em i doing something wrong?


Hello! Can you share with us what version of Unity you’re on, and the part of your UXML referring to the template file?
Thanks in advance!
Unity version: V. 2020.3.12f1 Personal
UI Toolkint: Version 1.0.0-preview.16 - August 16, 2021
UI Builder: Version 1.0.0-preview.18 - October 12, 2021
Line 4 and 10… if i “edit in context” and even on a new UI window, sometimes i will Ctrl+S and it will remove a lot of items, not just even that one… thinking about it it seems that it removes all ui:Instance items, because the IMGUIContainer survives this bug…
xml** **<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" xsi="http://www.w3.org/2001/XMLSchema-instance" engine="UnityEngine.UIElements" editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../../UIElementsSchema/UIElements.xsd" editor-extension-mode="False"> <ui:Template name="ui-control-type-index" /> <ui:Template name="ui-control-type-color" /> <ui:Template name="asset-switcher-template" src="asset-switcher-template.uxml" /> <Style src="/Assets/dummy.uss" /> <ui:VisualElement style="height: 100%; width: 50%; left: 10px; top: 10px; margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 0; padding-left: 19px; padding-right: 19px; padding-top: 19px; padding-bottom: 19px;"> <ui:IMGUIContainer name="logo" style="background-image: url('/Assets/icono.png'); height: 80px; width: 80px; margin-bottom: 24px;" /> <ui:Instance template="ui-control-type-index" name="options" /> <ui:Instance template="ui-control-type-color" name="color-picker" /> <ui:Instance template="asset-switcher-template" name="asset-switcher-template" /> </ui:VisualElement> </ui:UXML>** **
Thanks for the bug report!