A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate
in the Unity community.
Discussion in 'UI Toolkit' started by vestigial, Jun 15, 2020.
Is it possible to convert back and forth between text and visual tree asset at runtime?
This is not possible, at least not reliably. The conversion from VisualTreeAsset to a VisualElement tree via CloneTree() is not 1:1. More VisualElements are created than there are tags/items in the VisualTreeAsset. And many VisualElements have non-trivial constructors that can create (or destroy) more elements.
If you add some info on your use case we can maybe offer some alternative supported workflows.