Hello, I use github and unity 2021 and I noticed scriptable objects wont update when I change stuff on them. I checked the git ignore file, all seems fine, it does not ignore .asset files. Anyone knows whats going on? Thank you.
This can be tricky. Change manually via Inspector? Then Ctrl+S (File-Save) after making changes. You can make an editor script that, upon editor losing focus, calls AssetDatabase.SaveAssets
.
Changing by script requires calling EditorUtility.SetDirty(so)
followed by AssetDatabase.SaveAssetIfDirty(so)
if you don’t go through SerializeObject
instance.
1 Like
Thanks so much man!! Thats been very weird bug. It fixed it.