Hi,
I got a UIDocument component attached to a GameObject with a Panel that has a Render Texture as Target Texture and as source asset a custom visual tree element. The element appears on a Material of the parent game object. but after calling GenerateVisualContent (method is definitly called) the change is not rendered. What could be the reason?
Looks like Render Textures are not the right choice to lay down Visual elements that change at runtime. So I switched to old UI Images on Canvas