Storing changed values in editor at play mode for faster iterations?

Hi,

Some of my gameobjects have scripts that tend to have 10+ variables that game designers need to tune them at runtime and since the value at runtime is lost back in editor, they write the values down on a piece of paper and then put them back!

Please do correct me if I’m wrong but IIRC, from my kinda old knowledge of Unity’s internal system, play mode is a different scene node from the editor and it’s not possible to send back data to editor from play mode.

So I think it’s down to storing the values temporarily in a file, via serialization(?), and have a load button for those scripts to know how to open those [probably] text files and put data back.

Any help or sample to do so is appreciated.

How about this: PlayModePersist

OR

if you do not wish to spend money then you can do it manually using method provided by chetanisinanand for question: how do i commit changes in test mode?:

  1. Enter play mode,
  2. Adjust your values,
  3. Right click on Script > “copy Component”
  4. Exit play mode,
  5. Go to original prefab > Right click on Script > “paste component as values”