/Engine/Source/Runtime/Engine/Classes/Engine/CanvasRenderTarget2D.h
CanvasRenderTarget2D is 2D render target which exposes a Canvas interface to allow you to draw elements onto it directly. UseCreateCanvasRenderTarget2D()to create a render target texture by unique name, then bind a function to the OnCanvasRenderTargetUpdate delegate which will be called when the render target is updated. If you need to repaint your canvas every single frame, simply callUpdateResource()on it from a Tick function. Also, remember to hold onto your new canvas render target with a reference so that it doesn't get garbage collected.
class UCanvasRenderTarget2D : public [UTextureRenderTarget2D](API\Runtime\Engine\Engine\UTextureRenderTarget2D)
bool
bShouldClearRenderTargetOnReceiveUpdate
If true, clear the render target to green whenever OnReceiveUpdate() is called.
FOnCanvasRender...
OnCanvasRenderTargetUpdate
Called when this Canvas Render Target is asked to update its texture resource.
TWeakObjectPtr<...
World
The world this render target will be used with