Saving changes to LightingData.asset

Hello,

I’m currently trying to save in editor changes to the LightingData.asset.

It doesn’t seem to be a problem for example to assign new/ replacing old lightmaps or lightprobes but when saving the scene (and project) and reopening it, all assignments are lost and reverted back to the original.

In my script, after applying the changes, I’ve tried things like creating a new asset in the project but that prompts an ‘already existing’ warning (no matter where in the project it is created) and deleting the old one before creation results in a missing reference (even with a ‘new LightmapData()’ variable assigned).

Copying the asset after it is supposedly authored works but also only retains the assignments before the applied changes.

Am I missing a way to overwrite this asset with changes or is this just flat out not possible ?

Thank you in advance.

I have the same question in 2020,do you find a good way to solve this? thanks

Still an issues in 2021 :frowning: