How to I set up the UV coordinates (I suspect it is the second UV set) for a in-editor generated mesh?
I create the mesh in the editor (not in the game) because it is part of my custom editor.
The information is needed, because the Unity Lightmapper only gives complete black lightmaps when I am trying to generate one. (Yes, I set the object to be static)
but it doesn’t work. Also, I tried moving the call to GenerateSecondaryUVSet in various places, interlacing assignment of other attributes but nothing works. The result is the same all the time, that is, I see my object blinking with various parts of the lightmap, depending on where my camera is.