Don't know if this is the correct place to post this, cannot find a forum specifically for UIElements. How do I "load" the custom UXML View into an editor window? Cannot find anything about the UIElements Views in the documentation
The editor window has a root VisualElement. You need to load the UXML file and clone its asset into it: Code (CSharp): public class MyWindow: EditorWindow { void OnEnable() { var asset = Resources.Load("myUxmlFileWithoutExtension") as VisualTreeAsset; var root = this.rootVisualElement; root.Add(asset.CloneTree(null)); } }
FYI, we now have a dedicated sub-forums where you can use for all your questions and feedback related to UI Systems Previews. Cheers,