Search Unity

Question Camera stack on rendering single color since build

Discussion in 'Universal Render Pipeline' started by gewl, Apr 4, 2021.

  1. gewl

    gewl

    Joined:
    May 19, 2016
    Posts:
    95
    I'm using Unity 2020.3 LTS with URP. I built my project this morning (as I have many times)—as soon as the build completed, my camera stack began only rendering a uniform bright red (not a color I have any objects or clear flags set to). My camera overlay UI renders on top of this color correctly.

    There are a few things that seem to switch my stack to rendering correctly, such as:
    1. Changing my base camera's position and then pressing ctrl-Z to undo the position change.
    2. Changing my base camera's near clip plane.
    3. Changing my base camera's projection mode.
    It's all stuff like this, inspector changes on the base camera component (or undos on other components on the same object). Nothing else I do changes this behavior. Once I've triggered one of these changes, the stack will render correctly until I enter or exit play mode, at which point it goes back to showing the solid color until I trigger the change again.

    I've tried restarting, reimporting assets, git resetting to previous commit that this wasn't happening on, but nothing changes it.