To open and use the debugger, follow these steps:
Open the debugger window by going to Window > 2D > Light Batching Debugger.
View the Light Batching Debugger updates in real time by keeping the Game view and the debugger window open at the same time.
Select a batch from the left side of the debugger window to view Lights and Shadow Casters in the current batch.
Sorting Layers that are color coded differently means that they’re in different batches with different Batch IDs and aren’t batched together.
Sorting Layers that share the same color code are batched together and will share the same Batch ID.
Select adjacent batches to compare the differences between the selected batches. The debugger window displays the Light(s) and Shadow Caster(s) included in each batch in separate panels.
In this example, Light A exists in Batch 0 and not in Batch 1. The debugger provides instructions at the bottom of the window on what you need to do to have Unity batch the two selected batches together; that is, Batch 0 contains Light A which currently only targets the BG Sorting Layer. By having Light A also target the Default Sorting Layer, Unity may be able to batch both Batch 0 and Batch 1 together.