UnityBehaviourTreeEditor icon indicating copy to clipboard operation
UnityBehaviourTreeEditor copied to clipboard

[REQUEST] Could we get a master blackboard type behavior?

Open Oddlaceguy49 opened this issue 1 year ago • 3 comments

It would be awesome if we could get some sort of master blackboard or blackboard inheritance where all blackboards can share a key with one blackboard.

Oddlaceguy49 avatar May 20 '24 00:05 Oddlaceguy49

Could you describe the context you need this for? Just trying to work out if you want to share blackboard key values between multiple agents at runtime for communication, or just have common settings that can be overridden per agent (speed etc)

thekiwicoder0 avatar Jul 27 '24 06:07 thekiwicoder0

Sorry for not responding sooner. This feature would be useful to avoid duplicating information. An example of this would be when want to give all enemies on the map, the position of the player. Instead of sending the position to every single blackboard, we could send it to one master blackboard, and have every enemy inherit from that. I have already implemented a crude version of the system, which allows a behavior tree to inherit from another dummy behavior, tree which acts as the master. What makes this problem so hard is that currently to behavior tree and the blackboard are tied together at once. I can upload my implementation if you like.

Oddlaceguy49 avatar Aug 08 '24 05:08 Oddlaceguy49

I have also designed a node picture inheritance system that operates as a singleton scriptable object. It allows you to assign a picture to all nodes, a sub group, or an individual node, with each level overriding the higher one.

Oddlaceguy49 avatar Aug 08 '24 05:08 Oddlaceguy49