Custom Shared Variable with Scriptable Object

Culzean

New member
I have just purchased Behaviour Designer and am experimenting with how we can integrate this into our game.

We use a data blob class that contains a scriptable object with further game data. I would like to share this with the tree and potentially swap the data blob around depending on the desired behaviour.

I have created a shared version of this data blob. However the scriptable object seems to be invalid and throws errors when bringing up the inspector in the Behaviour Designer panel.

Is there support for Scriptable Objects as shared objects? What the best way to access a scriptable object from within the behaviour tree?

Thanks
 
For this situation I would reference the ScriptableObject directly within your task rather than creating a SharedVariable for it. You could do it via a field or you could do something more dynamic depending on the system that you are using, such as a singleton which stores all of the ScriptableObjects that you are using.
 
Top