Static Texture 2D comes out transparent when created from a Render Target 2D

Hi,

I’m making a Editor Utility Widget and one function is to grab screenshots of the level.
I have a Render target file created in the Content Browser, I spawn a Scene Capture 2D in my level, capture the scene, then use "Render Target 2D Create Static Texture 2D Editor Only. It outputs the textures, and RGB are fine, but the alpha is set to 0 and is ON making the display transparent. You will fine all the option I have set in the pics.

I have tried almost all the different option for the render target and the Scene Capture 2D, and would love some help finding out how to makes them come out opaque. Maybe a way to set the compression “compress without Alpha” ON at creation time?

Thanks

EUW logic:

Render Target:

Output texture:

Yeah setting the “Compress without Alpha” is the way to go for this, especially if its what fixes it in the texture viewport.

Hope @XxpiingyxX was right and you don’t need this but… I noticed that in the settings you set the “Capture Source” parameter to “Final Color (LDR) in RGB” so i suppose that you are saving the picture with RGB values, not RGBA. So probably the render target, not receving any alpha channel data, is setting the opacity to 0 by default. Try look for an RGBA option in the “Capture Source” parameter or modify the output by manually setting the alpha channel to 1.
I have never worked on a screenshot system so i don’t know for sure if this is the problem, try and let me know.
Have a nice day :slight_smile: