Search Unity

Question UI Disables Display of Realtime Lights

Discussion in 'UGUI & TextMesh Pro' started by jpotterf, Apr 27, 2023.

  1. jpotterf

    jpotterf

    Joined:
    Jan 20, 2016
    Posts:
    1
    Hello all,
    Encountering a strange problem: when the prefab that includes all the game UI scripts and canvas is active all real-time spot and point lights disappear when in play mode, and directional lights are not affected. When the UI prefab is disabled the lights appear again in play mode.

    The only thing we can think of is that the canvas is somehow overriding the lights' visibility (see highlighted 'additional shader channels' warning) Attached an image of the UI prefab, the Canvas is set to Screen Space - Overlay. We've tried disabling the Normal and Tan channels via runntime script but I've read elsewhere that those channels are necessary and cannot be disabled.

    Our project is using URP-HighFidelity vers. 2021.3.21f1

    We're probably overlooking something obvious but any ideas would be very much appreciated.
    LightsDebug.png LightSettings.PNG UI_Prefab.PNG