x


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.

more ▼

asked May 24 '12 at 02:58 PM

sedlu gravatar image

sedlu
16 1 6 8

There is a Undo/Redo mechanism but I never used in PlayMode.

May 24 '12 at 03:39 PM Kryptos
(comments are locked)
10|3000 characters needed characters left

0 answers: sort newest
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1670
x167
x30

asked: May 24 '12 at 02:58 PM

Seen: 378 times

Last Updated: May 24 '12 at 03:39 PM