Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved Render Texture stopped working

Discussion in 'General Graphics' started by htlFORT, May 1, 2023.

  1. htlFORT

    htlFORT

    Joined:
    Feb 5, 2021
    Posts:
    4
    Hello, an amateur here.
    2 questions:
    First off, I'm trying to convert a render texture to a PNG. The render texture was capturing, until it just blanked out... The URP, Post Processing, camera, whatever, all weren't changed, but now the render texture is just blank. Just before it stopped working, I was messing around with adding camera overlays to the camera stack, but I've since removed them.
    I have restarted the Unity Project, remade the URP, camera and render texture many times, but the render texture still can't capture...

    Second question, how do I capture post processing effects in the render texture, but keep the background transparent?

    Camera settings:
    Screenshot (198).png

    Blank Render Texture:
    Screenshot (199).png

    Render Texture after changing *any* of its settings (still blank after saving):
    Screenshot (200).png
     
  2. htlFORT

    htlFORT

    Joined:
    Feb 5, 2021
    Posts:
    4
    Welp, the render texture display still isn't working, but it turns out my script to convert to png was buggy, so I fixed it.