#Alternative Repro for CanvasRenderTarget
If you want to see the crash for the CanvasRenderTarget that’s even simpler!
- Same static mesh extending class
#.h
UPROPERTY()
UCanvasRenderTarget2D* RenderTex;
#.cpp
RenderTex =
UCanvasRenderTarget2D::CreateCanvasRenderTarget2D(
UCanvasRenderTarget2D::StaticClass(),
512, 512
);
Crash in this case happens on trying to CreateCanvasRenderTarget2D, the only line of code here.
This is all in game thread
You could trigger this code on key press via Blueprints if you like, I am trigger this code when player presses key to open the Solus Sleep Menu
Thanks!