Script values being reset at random

I am continuously having a problem of inspector values for scripts attached to GOs getting randomly reset to default values, for no apparent reason, which has made development practically impossible. At first I thought it was caused by the same problem that was (and still is) causing some editor scripts to display the “no monobehaviours in script” error (even though those scripts usually run fine), but the scripts being reset do not have that error.

This problem is especially bad when I’ve set values for a specific object after working out the exact parameters that are needed for a given circumstance (such as the timing for certain actions that are controlled via the attached script), but then I have to redo everything some days later. This is wrecking my project : I probably won’t be able to get it finished at all unless something changes Someone else must have come across a similar problem and know how to solve it.

do you have a custom editor for those behaviours? I noticed that if you dont use the serializedProperty/object focused editing methods they tend to show that behaviour (not becoming dirty, so resetting their values on scene reload etc)

I’m not sure what you mean. As far as I know, I didn’t do anything unusual with any of these scripts, and it didn’t used to be a problem.