tdlr; Cannot get Rendertargets to save in project files or on disk. Currently making blank png files instead.
I am once again asking for your help with Rendertargets.
I have a painting program in VR using Rendertargets! It is going great. But now I need to save the Rendertarget textures to 1) Make an Undo button and 2) Use the texture in other parts of the game.
I followed this very helpful tutorial UE4 Importing and Exporting Render Targets (Save and Load) using Blueprints - YouTube
Unfortunately the exporting is not going well. One of my friends theorizes it is because of âForward Renderingâ (Which is usually used in VR projects). I am worried that something in 5.1 broke since the tutorial was made. But I cannot find any resources for this problem. I am also very new to saving things in game, so it could just be personal ignorance of the subject.
Here is a glance at my code. I double checked the tutorial and am currently getting blank Texture files exported. I can see that my Rendertarget is saving the painted on texture, but itâs not exporting.
The render target itself with some blotches of paint.
I am no longer receiving errors, but am not seeing any color textures (Just exporting a blank empty texture that is named correctly).
â Added note, the âdraw Render Target to Materialâ does work, I can see the texture appear after using it in editor. Not sure if this works during runtime.
If this looks familiar to you and you have any advice or resources then please let me know. Thank you so much! If you have a similar predicament or are curious please comment and weâll figure this thing out together. Thank you!