Behavior tree value resets after 60 sec

hi all, I have the same problem as described here

you can find my project here for testing. it’s a C++ project.

I traced the log and in 60 seconds mark the value changes by itself.

Please let me know your findings.

Thanks!

hi, it appears that after adding a custom task (other than a simple wait) to my composite nodes, this behavior of resetting after 60 seconds doesn’t happen, and if my custom task returns InProgress, after the 60 seconds mark, no resetting is taking place. So perhaps the original resetting is expected behavior and everything works as expected.

Thanks!

I had a similar problem in my C++ project, when Garbage Collector deleted my variable after 60 sec of gameplay. I had to add a UPROPERTY macro to tell the GC that I need this variable.

ah, that makes sense. thanks for letting me know!!