#Auto trigger baking for ScriptableObject
1 messages · Page 1 of 1 (latest)
You can add a depedency to the asset via AssetDatabase.RegisterCustomDependency()
🤔 From what I know, both ScriptableObject and game object prefab are trigger baking when save to disk but for game object when change a value it will auto save to disk. So I believe to get ScriptableObject works like game object prefab will need to have auto save api. Is there any api available for this?
if you edit a ScriptableObject via inspector is immediately reflected to dik.
Not really. You will need to ctrl+s to save to disk to trigger baking for scriptable object
Not really. Depend how you wrote the inspector. If you use the default it may be not reflected immediately, right. But should be still saved.
The problem is that you have a scriptable that is referenced by a GameObject and you add the depedency to it, it should retrigger baking.