kimsama / Unity-QuickSheet

Unity-QuickSheet enables you to use spreadsheet file data within Unity editor.
http://kimsama.github.io/Unity-QuickSheet
MIT License
1.05k stars 190 forks source link

Saving Google ScriptableObject failed, need to call SerializedObject.Update() before SerializedObject.ApplyModifiedProperties() #81

Open cyshenfrog opened 4 years ago

cyshenfrog commented 4 years ago

I'm using Unity2019.3.13f1

After generate Google sheet and press Download button, nothing happened I only success 2 times but most time it failed

I use debugger confirmed that I do received data and write into target ScriptableObject But even we set it to Dirty and call AssetDatabase.SaveAssets() didn't solve it

Finally, I add targetObject.Update() before targetObject.ApplyModifiedProperties() inside BaseGoogleEditor.OnInspectorGUI() And this solved this issue

This is first time I meet this issue I already used this tool for 2 year and tried on 2019.3.3 & 2018.x, 2017.x, it usually works perfectly