Light baking issue

Hi everyone,

So we are having an issue while baking lights in Unity.
I combined meshes using a custom scripts, and I moved UV2 coordinates so they don’t overlap (since as far I know Unity uses uv2 for light maps).

But even though the uv2 are separated (I checked) and do not overlap, I have these weird shadows. At the left a merged mesh and at the right an object composed of many modular pieces.

Thanks in advance.

Edit : It seems that I forgot to add margins on the edges of uvs. Also even though combined mesh still have submeshes. You have to keep their uv2 separated. It’s now working as intented.


1 Like

That definitely looks like overlapping UVs, so I’m guessing something went wrong.