Set Blackboard Value as Vector in UE5

In UE5, the Set Blackboard Value as Vector node does not work inside a custom task. If replace it with Set Value as Vector, as shown in the figure and set the Key Name value to the variable name in Blackboard, then it works.
Why is that?

3 Likes

You might have already done this, but without enough information, I have to make mention of this.

When youā€™re using SetBlackboardValueAsVector, you have to pass the variable in from the BehaviorTree via the taskā€™s details panel. So that variable has to be ā€œInstanceEditableā€ so that you can see it when you select your task in the behavior tree. From there, you identify the actual Blackboard variable you want to use and pass it in (as a reference). Otherwise the task is setting an empty variable (reference) to that value, and your Blackboard doesnā€™t know.

6 Likes

Thanks! Helped. This Behavior Tree has a strange implementation logic.

3 Likes

Thanks!Very Helpful!

Thank you so much!

1 Like

It still doesnā€™t work after I set the Blackboard Value to InstanceEditable. It also does work to me when using Set Value as Vector.

1 Like