Skip to content

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

@cyshenfrog

Description

@cyshenfrog

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions