0
En revisión

Renaming a property resets its value

Lionel Gallat hace 11 años actualizado por Freya Holmér (Developer) hace 11 años 1
By default, renaming a property resets its value. And I was wondering if there could be a way to avoid that behavior as it can be frustrating after renaming a bunch of properties at once to have to redo all the work.

I don't know if it's technically feasible (as it would mean tracking the name variables that have been renamed, remembering their settings and applying those again after the rename operation), but it would be very nice if it were...
That's a pretty good idea!
There may be a nice way of actually doing this. I would need to loop through all materials in the scene and grab the stored values, then rename it, then loop through and reassign the broken links.

It could possibly work for code as well, replacing all the material.SetVector("_MyProperty") etc.