#Auto trigger baking for ScriptableObject

1 messages · Page 1 of 1 (latest)

dapper pasture
#

I have the use case that want to make ScriptableObject to work just like game object prefab that when a value it will auto trigger. Is there any way or api to achieve this?

rich venture
#

You can add a depedency to the asset via AssetDatabase.RegisterCustomDependency()

dapper pasture
rich venture
#

if you edit a ScriptableObject via inspector is immediately reflected to dik.

dapper pasture
rich venture
#

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.