Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug "Uninitialized" background type not working on Android

Discussion in 'Universal Render Pipeline' started by Wasplay, Jul 7, 2021.

  1. Wasplay

    Wasplay

    Joined:
    Jun 2, 2018
    Posts:
    46
  2. MlleBun

    MlleBun

    Joined:
    Sep 19, 2017
    Posts:
    163
    Hi @Unity,
    Any news please? I'm running on Unity 2021.1.13f1 with URP 11.0.0.
    Thanks
     
  3. roseportalgames

    roseportalgames

    Joined:
    Aug 9, 2017
    Posts:
    173
    Same issue here.
     
  4. reggie_sgs

    reggie_sgs

    Joined:
    Jun 29, 2014
    Posts:
    266
    Why is this issued listed as fixed when it is clearly not and hasn't been for a while?
     
  5. emrearsay

    emrearsay

    Joined:
    Nov 17, 2021
    Posts:
    2
    Same issue consists. waiting since 2017. Unity 2020.3.17f1, URP 10.6.0 for IOS.
     
  6. erdostamasa

    erdostamasa

    Joined:
    Mar 28, 2020
    Posts:
    32
    Any solutions?
     
  7. JessicaHu

    JessicaHu

    Joined:
    Apr 9, 2014
    Posts:
    3
  8. rjonaitis

    rjonaitis

    Unity Technologies

    Joined:
    Jan 5, 2017
    Posts:
    115
    "Uninitialized" does not mean "don't clear", https://docs.unity3d.com/Packages/c...s.universal@15.0/manual/cameras-advanced.html "Note that the contents of the uninitialized color buffer vary by platform."
    You can't have multiple "base" cameras with "Uninitialized" background and expect them to combine into single image, it's undefined behaviour.
    To achieve what you want you need to use first camera as "base" and then other cameras have to be "overlay": "an Overlay Camera receives a color buffer containing color data from the previous Cameras in the Camera stack. It does not clear the contents of the color buffer."
     
  9. JessicaHu

    JessicaHu

    Joined:
    Apr 9, 2014
    Posts:
    3
    Thanks for your reply. I tried your method but still have problems.

    The original problem is there are two cameras in the scene.

    The first camera is for UI:





    The second camera is for 3d model.





    Then I want to combine two cameras like this:




    In the editor it works. But it doesn't work after build to Android / iOS devices.

    If I set first camera to "overlay" and second camera to "base"





    I got this:





    The view of the first camera disappeared.

    Am I missing something?
     
    Last edited: Sep 22, 2022
  10. JessicaHu

    JessicaHu

    Joined:
    Apr 9, 2014
    Posts:
    3
    Last edited: Sep 22, 2022