this is my first time using ExecuteInEditMode and I’m having one last issue.
So I have a script with the [ExecuteInEditMode] tag above it.
In the script is a public float that can be changed in inspector.
During play the value is changed, but after exiting play mode the value stays the same instead of resetting like it normally would.
Any one know how to get it to preserve its editor value?
EX: In edit mode inspector float value =0;
Hit play mode, code changes value=1;
exit play, value still =1.
I tried using the EditorUtility.SetDirty() but it didn’t seem to do anything.