[StateTree] Hierarchical Data

Good day.

According the description of Overview of State Tree in Unreal Engine | Unreal Engine 5.1 Documentation

Variables can “share” between" the nodes of a state,
I want to gain a location where make the AI move to,
but I found the location value changed will transferring from a state to its child state,
here I put two child states which print the location under the state “Idle” which gets the location:

and you can see the task in them, here’s the definition of these two tasks:

The “MoveTo” task

The “WaitAndLook” task:

and here’s the result that I printed on the screen while playing level:
ScreenPrinting

the variable “Patrol Location” of the child states was bound in its task setting:

My question is why the location value is changing while transferring to the child states?

Random Point in Bounding Box is a pure function which means it gets called for every execution node it is connected to. So in your case it gets called once for Print String and then again for Set Patrol Location.