This question was
closed Jun 19, 2018 at 02:21 AM by
NoDumbQuestion for the following reason:
The question is answered, right answer was accepted
Question by
NoDumbQuestion · Mar 26, 2018 at 02:02 AM ·
unityeditorscriptableobjectsaveassetsprocessor
Scriptable object only save change on Exit
I was using EditorUtility.SetDirty for most of my script in Unity 5.6. Which obviously have been decrepitated from Doc here: https://docs.unity3d.com/ScriptReference/EditorUtility.SetDirty.html.
The troublesome with SetDirty is the asset files not save on changed immidiately as Unity only save it when you exit Unity.
As the project grow, it is a bit too much to reopen and exit just to save file and push some change to Git.
Any of you guys have solution to force save file immidiately would be much help.
Comment
Best Answer
Answer by NoDumbQuestion · Jun 19, 2018 at 02:20 AM
Press Ctrl + S to save asset to disk. It will show up in git.