Unity Build Automation lightmap baking
Resolve Unity Build Automation lightmap baking issues and understand common causes and solutions.
Read time 1 minuteLast updated 16 hours ago
Symptoms
- Builds you create with Unity Build Automation are much darker than a local build.
- 3D assets are dark when you use Unity Build Automation to build the game.
Causes
Unity Build Automation doesn't support building lightmaps, and if you try to build a lightmap the builds might be too dark and have poor build performance. There are two possible causes:- You use Precomputed Realtime GI for your scene and have the Auto Build for lightmaps enabled.
- You haven't checked in your build maps into your repository.
Resolution
Turn off Auto Build in your scenes and manually build and commit your lightmaps. Depending on what your scene includes and your lighting settings, you need to commit the following files:LightingData.assetLightmapSnapshot.assetLightmap-xxx.exrLightprobe-xxx.exr