How to assign StateTree parameters at runtime

Has anyone found a way to assign / update values to a StateTree parameter?

Yeah it get’s complicated. You have to use your evaluator in combination with your actor to pass information back and forth.

So you can’t update the parameter specifically, you use those as default values, pass them into your evaluator and then adjust there.

Hopefully that makes sense.

Does that work, sure, does it make sense? That is another story. The current workflow I have found makes parameters useless. If I am going to have default variables or anything I need to update or set from outside the actor using state tree I have to set up a bunch of variables on the actor. Was hoping this would be more like Blackboard and Behaviour Tree than needing to make an external data housing component or the such.

Can you elaborate? I tried what you described but it’s not working.

The parameter in state tree:

The variable in the evaluator:

Changing the variable’s value in the evaluator did not update the corresponding state tree parameter.