I’m running into some trouble dynamically swapping a text element into an image element. A provided example that should work is here: https://playcanvas.com/editor/scene/945531
My best guess is that the swap isn’t getting marked as dirty by whatever does redrawing, which you can also see in the editor by simply swapping the element to an image element and then adding a texture. However, if after you do that, you tick the ‘Mask’ option on and off, it will appear. I presume that it’s because setting a mask triggers a redraw.
I might also be approaching this incorrectly, but either way, does anyone know how it can be solved?