I want to render a 2D texture and export it as an image (base64). Is there any built in to do this from existing UI elements (texts, images, etc.) or do I have to render these myself on an offscreen canvas element using standard HTML5 functions?
No there isn’t any built-in method to do that. @Sachet has done something similar, to render a texture from UI Elements and render it on to of a model.
Take a look at this post:
Thanks a lot.
This project I did a while back may help where I take screenshots that could be downloaded from several camera angles: https://playcanvas.com/editor/scene/719944
That will also help with encoding the texture. Thanks @yaustar!