Steps to reproduce:
- Create a new Unity project using the Universal 2D template
- Open the Light Batching Debugger window (Window > 2D > Light Batching Debugger)
- Dock the Light Batching Debugger window next to the Game View (but not on top of Game View)
- Select the Default batch
- Create a new GameObject (GameObject > 2D Object > Sprite > Triangle)
- Observe the Light Batching Debugger window
- Hover the mouse over the Game View and then over the Inspector window
- Repeat step 6
Actual results: The lights in the Light Batching Debugger reset to 0 and disappear when a new GameObject is created and when the mouse is hovered over the Inspector window
Expected results: The Light Batching Debugger shows the correct amount of lights
Reproducible with versions: 2022.3.66f1, 6000.0.57f1, 6000.1.16f1, 6000.2.4f1, 6000.3.0b1
Tested on (OS): macOS Silicon Sequoia 15.6
Notes:
- In some Editor versions like 6000.3.0b1 the lights don't disappear/reset to 0 upon GameObject creation, but disappear when mouse is hovering over the Inspector window, but seems to be the same issue.
- In 6000.2.4f1, the lights disappear upon creating the GameObject as well as hovering the mouse over the Inspector window
- Hovering the mouse cursor over the Game View makes the lights reappear in the Light Batching Debugger