- Home /
How could I reset a modified serializedProperty in PlayMode runtime?
Hi, I wrote a custom editor being used in Playmode(because physics mechanism is needed) to edit properties of a SerializedObject. I use PropertyField to let user edit those properties. Now I want to make a button which can reset all the properties modified to the initial states(the values when the editor just went into PlayMode ). Is there any function supporting this?
Thanks.
There is a Undo/Redo mechanism but I never used in Play$$anonymous$$ode.
Your answer
Follow this Question
Related Questions
ObjectField functions ignoring parameter 1 Answer
Call a function from CustomPropertyDrawer of Arbitrary class 1 Answer
Do I need to use SetDirty in my editors if I'm using SerializedProperties? 1 Answer
Editor: How to do PropertyField for List elements? 4 Answers
How to get "name" member of a ScriptableObject, as a SerializedProperty 2 Answers