Context
State Tree Tasks have a configurable default value 'Should State Change on Reselect' which controls whether the task receives a EnterState/ExitState if completion of the current state is followed by the same state being re-selected.
Problem
While setting 'Should State Change on Reselect' to true on a state tree task class does cause EnterState/ExitState to be called, the state of the task is not reset to default. This is confusing behavior as the state is exited and entered, but the task keeps its values from the previous iteration. The task should not behave as persistent when the state is exited and entered.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-229895 in the post.
0 |
Component | UE - AI - StateTree |
---|---|
Affects Versions | 5.4.3 |
Target Fix | 5.6 |
Created | Nov 7, 2024 |
---|---|
Updated | Nov 8, 2024 |