How do I use a skybox and render texture?

Hello,

I have a camera with a target texture (render texture) and a skybox. The render texture is also assigned to a “Raw Image” UI component.

Trouble is the skybox is not working properly in this setup. It looks as if the the raw image is transparent or something.

What am I doing wrong?

Thanks51168-transparent-skybox.jpg

Hey @wbl1!
I found a solution, you need to add a material (Unlit/Texture) to your RawImage to display the skybox correctly. This might generate some other problems if you use UIMasks but else it works perfectly.

cheers.

Use skybox in camera options.

For if anyone is still looking for this answer in 2022, and using URP:
I had some success with setting the shader to the new material to UI/DefaultETC1