0
Answered

Incorrect/unexpected results in my graph from set variable to logic nodes

TowerCrow 1 year ago • updated 1 year ago 3

I'm attempting to translate this rather simple C# script to Bolt nodes.


And here's my graph:


And here's a video of the unexpected results between set variable and logic nodes. Even though it should always get the same "enemyDistance" int value that does not happen. Is it a bug or is it a problem with my graph?



Bolt Version:
Unity Version:
.NET Version:

Got it explained on the Discord by Reality.Stop() - It's expected functionality. Values update only on the nodes that are called. So it's not that the nodes get incorrect values. The values simply are not refreshed and it's expected functionality for this pull type operation. 

+1
Answered

Argh, this is really unintuitive though! Don't worry though, this kind of behaviour will work like you first expected it to starting in v.1.4 with values that get cached on the flow.

Thanks, Lazlo. Much appreciated.