Hello,
For a while i’ve been searching how to draw in a texture in realtime.
Apparently in 4.5 CanvasRenderTarget2D was added.
I tried to make it work but i seems to be missing something and cannot find any exemple on how to make it work. Anyone got a little guide or some bullet point on the step to follow to make it work ?
Thank you very much !
There is no tutorial anywere on this… i was trying to get it to work through HUD so i was doing it wrong
I will flag this thread as answere soon, i just have one more little question about it.
If i want to use oneCanvasRenderTarget to do something like a drawing application, is it even possible ?
i noticed that if i use a simple flip gate, it erase the previous frame anyways to stop that ?
Hello, is it possible to do this in C++? I tried reproduce itm but got lost in BP calls, I need to draw line (or simple shape, basicly UCanvas know to draw everything i need) on texture (or better create texture).
Thank you for your tutorial. I have a question: What is the use of the Render Target that you create at first? Is it necessary for memory or something similar? I see that the canvas is not writing to the render target texture, and it is not referenced further, only as an initial value for the material instance.
I ask because as far as I understand, the CanvasRenderTarget2D is itself a kind of render target, that gets initialized with its own size etc. And when you set the material texture parameter to the canvas, as far as I understand, it is overriding your original render target texture, and that is not used further?