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

2D LightWeight Renderer scene with 2 cameras, 2D lights and PostProcessing

Discussion in '2D' started by ZliVuk, Sep 24, 2019.

  1. ZliVuk

    ZliVuk

    Joined:
    Mar 24, 2018
    Posts:
    61
    - Empty 2D scene.
    - 2 Cameras: Main that displays everything except one Canvas (UI elements) and has PostProcess on it, UICamera that displays Canvas only one layer with some UI elements.
    - Main camera has depth 0, UICamera depth 1 since UI should be above sprites
    - Main camera displays sprites with lights and everything is ok. Even PostProcessing works.
    - UICamera displays Canvas with UI elements but it is not transparent despite the fact that color is set to transparent.
    Please help. I'm missing something obvious or there is a bug when 2 cameras are present in the scene.
    Before converting to Lightweight everything worked as a charm. Both cameras worked as expected. As soon as I set everything for Lightweight second camera becomes non transparent.
     
  2. vadersb_ru

    vadersb_ru

    Joined:
    Jul 5, 2017
    Posts:
    15
    ZliVuk likes this.
  3. ZliVuk

    ZliVuk

    Joined:
    Mar 24, 2018
    Posts:
    61
    Unfortunately I have came to same conclusion. Shame. But that link is gold. Thanks you.