kimsama / Unity-QuickSheet

Unity-QuickSheet enables you to use spreadsheet file data within Unity editor.

Home Page:http://kimsama.github.io/Unity-QuickSheet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

cyshenfrog opened this issue · comments

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