- Home /
Question by
AdamLampada · Mar 07 at 12:04 PM ·
lightmap
Generating Secondary UVs for an imported mesh
I am using a script to generate the secondary UV sets using Unwrapping.GenerateSecondaryUVSet() for an imported mesh which consists of multiple sub meshes. I want the sub meshes to have different UV settings so I can't just use the default auto generate lightmap UV setting as this appears to be generic settings for the whole mesh. I can manage to generate the UVs for all of the meshes using the mesh filters shared mesh. however when I restart the unity editor the secondary UV set gets wiped and I have to generate them again. Is there any way to make the generation persistent?
Comment
Your answer

Follow this Question
Related Questions
Unity 3D Hang after Lightmapping > Bake Scene? 0 Answers
Shadows penetrate through objects? 0 Answers
Lightmap Culling Mask woes. 1 Answer