To get text onto a paper2D sprite I’m:
-
Setting up a UTextureRenderTarget2D that is square and a power of two
-
Using FCanvas::DrawItem to draw text
-
Porting the UTextureRenderTarget2D to a UTexture2D using ConstructTexture2D
This last function is spewing a lot of output, perhaps suggesting that it’s not expected to be called multiple times a frame.
What’s a better solution to getting text drawn onto UTexture2D that I can bind to a Paper2D sprite?