Light mapping does not map some of my objects

I created a town in unity and to save rendering power I want to use light maps but I ran into a problem along the way. Some of my objects do not get backed. They are static and there shader allows for light maps. Is it because I have a lot of objects in the scene?

It’s maybe the cause of your problem.

When you bake your lightmaps, do you have some warnings on the lightmap array size which is reached ?

If you have numerous objects in your scene and if you don’t change the scale in lightmap so yes you probably reach the max lightmap array size (255 lightmaps are allowed).

In this case, decrease this value cause a scale in lightmap of 1 represent 1 lightmap per object which is really high :slight_smile:

You can watch this tutorial which is really usefull and the unity lightmap page