Quantcast
Channel: Questions in topic: "crash"
Viewing all articles
Browse latest Browse all 2383

After Unity Crash Camera RenderTexture 0 Alpha

$
0
0
I have a Screen Space - Camera Canvas with some content in it. The Main Camera renders to a RenderTexture that I draw back on to the Canvas using the RawImage Component when needed. This worked perfectly for weeks. However, today Unity crashed and since then my RenderTextures have been incorrect. My Canvas has a number of semitransparent images on it, varying in their degree of transparency, which rendered semitransparent on the RenderTexture. After the crash it seems the Camera is not rendering any alpha to the RenderTexture, now the entire texture has a constant alpha of 0 (black). I can use a shader to force the alpha to be 0.5 or 1, but this would be consistent across the whole RenderTexture, I would no longer have my varying degrees of transparency across my images. Even weirder, this bug appears to affect every project I have that renders a Camera to a RenderTexture. Even projects that I have not used in months, that worked perfectly before the crash, seem affected. EDIT: I have just checked a few older versions as well as the latest version of Unity. The issue persists. It worked perfectly on these version before, which makes me think something has broken in whatever files Unity shares between installs. I will check to see if the issue persists when using a different computer tomorrow.

Viewing all articles
Browse latest Browse all 2383

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>