Hi, I’m working on a tool to let users apply custom edits to lightmaps. Everything has worked well so far, right up to the point where I actually need to save the results to disk. I can view the changes in the editor and see them applied to objects in the scene.
However, Unity simply will not save the changes to disk. If I get a lightmap’s importer and call TextureImporter.SaveAndReload(), it blows away the changes, rather than saving them to disk. Saving the scene and the project does not commit the changes to disk, either.
This is in Unity 5.1
Is there any work-around or any solution on the horizon?