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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Question Lens Flares break camera-stacking, camera-space HUD?

Discussion in 'Universal Render Pipeline' started by macorig, Dec 10, 2021.

  1. macorig

    macorig

    Joined:
    Dec 27, 2010
    Posts:
    52
    Hey!

    I've imported the new URP samples to check out lens flares, but after putting the effect in my scene, UI rendering with camera-stacking and camera-space canvases seems to be broken; the UI does not show up at all, anymore. When I disable the lens flare, the HUD re-appears.

    I need the HUD canvases to be in the "Screen Space - Camera" render mode, because they are rendered to split-screen cameras; one for each local player.
    The player's camera stack consists of only the base camera and one overlay camera for the HUD.

    Checked out both URP versions, 12 and 13.

    Is this expected behavior, or is it a bug? And if it is expected, am I doing something wrong or is there a workaround?
     
  2. ropollock

    ropollock

    Joined:
    Aug 5, 2017
    Posts:
    3
    I'm seeing the same issue on unity 2021.2.7f1 and URP 12.1.2.
    There doesn't seem to be a work around that I can find!
     
  3. macorig

    macorig

    Joined:
    Dec 27, 2010
    Posts:
    52
  4. ChronicalGamingDevelopment

    ChronicalGamingDevelopment

    Joined:
    Feb 26, 2021
    Posts:
    3
    I tried to Implement Lens flares into my FPS. not only did it break my Weapon Overlay, but also made every white pixel black when aiming... weird...