Light Baking do not work

Hello everyone,

im making a game for mobile, im trying to gain performance by baking lights and shadows instead of doing it at runtime, but this feature is just not working i tried various parameters but always getting the same results.

My Scene Light is Mixed but also tried with baked but nothing changes.

LightBaking Settings:

Prefabs Settings:

What the Real Map Look like:

Hey! Would this bake if you had the terrain disabled?

we dont have any terrain in our scenes.

@giorgos_unity is this a bug or mistake made from my team side? Baking lights and shadows is really importent for our game.

Can you check if all the ‘Static’ flags (top right in the inspector) for the objects you want to include in the lightmaps are checked?

There’s most likely an issue with your scene setup. Is your scene comprised of a single contiguous mesh that you’ve imported into Unity? If so, make sure that you’ve authored your lightmap UVs in the DCC package, or let Unity do that for you in the Mesh Importer Settings window.

How does the Baked Lightmaps scene debug view look like after baking?

Also, as @giorgos_unity has suggested, make sure that the objects that you want lightmapped are marked as lightmap static/contribute GI.

2 Likes

Hello @kristijonas_unity , @giorgos_unity

Our scene is composed from multiple prefabs in separate Fbx files. I already tried letting unity making the UVs for all of them but nothing changes.
And all prefabs are fully static as you can see in the screenshot.

I recreated all the project files from the Assets folder. So now no more dark objects in the scene but can’t bake shadows at bake time neither realtime shadows at runtime. is there a workaround for this ?

1 Like

Did you ever fix this? same issue here.

yes, for me everything works correctly using unity 2020.2.+ and URP

im stuck on 2019, any ideas?