Unity 2019.4 and later.
Add SavePlayModeChanges
component to any game object in scene, then drag the component you want to save to SavePlayModeChanges.ComponentsToSave
list.
Enter play mode and modify any properties on the component you want to save, then exit play mode, all changes of supported properties will be saved.
Editor use only.
Only support serialized managed properties.