UI Builder: Drag UXML file into another document, but allow to "unpack" instead of using as Template

Hello, i’m playing with UI builder for some time and one thing that would be great to improve the creation workflow is to be able to drag a template to the current hierarchy but “unpack” with the right mouse button menu (or another way) like a prefab, so it won’t be a Template instance anymore, it would lost the connection to the dragged UXML.

The objective is to drag a UXML that contains some simple pieces of design, like with popup, panels, windows, some widgets. Just some small fragments of a theme that would help me to compose a window layout the way I want, and not use it only as a template Instance. The USS of the UXML could be added together into the current USS document in this case.

6104916--664353--upload_2020-7-18_16-14-21.png

Thanks!

It’s a good suggestion. I’ll add it to our backlog. Thanks for the feedback!

For now, you can use copy/paste to get a similar outcome with hopefully less clicks:
6109922--665213--copy-from-sub-doc.gif

1 Like