Search Issue Tracker
Static Batching Corrupts Baked Lightmap scene visualization on Play
Download, unzip and open the attached project StaticBatching_LightingUVIssue2.zip
Open AdditiveLighting_00_Master scene.
Ensure the lighting is correctly baked by clicking "Generate Lighting" from Unity's Lighting Settings tab.
Ensure "Static Batching" is disabled from the Player Settings window (Edit > Project Settings > Player).
Switch the Scene View Mode to "Baked Lightmap" in order to better observe changes to the lightmaps.
Enter Play Mode.
Observe the lightmaps remain mapped as intended.
Now enable "Static Batching" from the Player Settings.
Enter Play Mode once again.
The lightmaps will get hella goosed in the Scene View and dirty the bed sheets. You can't work like this. Like, seriously, what the hell is even going on anymore? I don't know. It's like a metaphor or something. The world is on fire and so are your lightmaps. Sad.
Note that the lightmaps are still rendered correctly in the Game view, only the Baked Lightmas scene view is corrupted.
Lightmap coordinates in scene view should remain consistent regardless of whether Static batching is enabled or otherwise.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
- [Profiler] [UI] Selected label contains data after cleanup
- Mismatched shadow projection between the Scene and Game views
- Infinite creation of Materials
- [MAC] Console window is showing an error when selecting a GameObject that uses geometry shaders
- Render Scale Jitter render scale changes that occur continuously