Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cyshenfrog opened this issue Aug 4, 2020 · 0 comments

Comments

@cyshenfrog
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant