Change variable name but keep already set inspector values?

I have a script that I want to change the variables names of, something like changing the variable name from characterSpeed to velocity. But I don’t want to lose all the inspector set variables that I have set for different prefabs/instances when I change the name.

Ideally, even though I might change the name of the variable I can keep all the values the same for each prefab that has it custom set and not have to go through each prefab and reenter the info. Is there any way to do this? Perhaps by setting inspector values through code?

There isn’t really a way to do this aside from writing down the values and then re-entering them after changing the name. You can set initial values by code but that would be the same for all objects which used that script.

–Eric