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

Bug Camera flickering on iOS with URP + Unity 2021.3

Discussion in 'iOS and tvOS' started by mvaz_p, Sep 6, 2022.

  1. mvaz_p

    mvaz_p

    Joined:
    Aug 22, 2018
    Posts:
    80
    We have a dual camera setup, one camera for our Screen Space - Camera UI and one for the world view and during gameplay we switch those cameras according to user input.
    Right now when we switch cameras, there's some intense flickering between the UI and the background clear from the world camera, making the game unplayable.
    This is works as intended with Unity 2020.3.34f1 but not with Unity 2021.3.9f1.

    We've only seen it happen in two iOS devices until now:
    - iPhone 12 Pro Max
    - iPad Pro 3rd gen

    I've already submitted a bug report (IN-15794) but would like to know if anyone is experiencing this issue and if anyone found a workaround for this.
    Here a video of it: https://imgur.com/dKPKkdM
     
    ArthurAulicino likes this.
  2. mvaz_p

    mvaz_p

    Joined:
    Aug 22, 2018
    Posts:
    80
    I've managed to investigate this a bit further. It seems to be caused by unchecking this:

    Universal Renderer Data → Shadows → Transparent Receive Shadows

    There’s no need to switch cameras, it only affects the Screen Space UI Camera.
     
  3. AndrewSpalato

    AndrewSpalato

    Joined:
    Sep 2, 2017
    Posts:
    11
    Oh wow I had the exact same problem and that setting Transparent Receive Shadows to true fixed this for me!
     
    mvaz_p likes this.