Description

Linked Asset trees do not transition correctly to Tree Succeeded if using an On Tick transition. The Debugger shows that the transition is triggered repeatedly but no state change occurs. Instead, the transition shows ~5 times per frame. Other transition types will work as expected such as On Event or On State Completed.

Steps to Reproduce
  1. Create a StateTree with StateTree Component Schema
  2. Add state to StateTree called Linked State
  3. Change State Type to Linked Asset
  4. Add another sibling state called Finished
  5. Add Debug Text and Delay tasks to Finished
  6. Enable Run Forever on the delay task
  7. Set the text task to display Finished
  8. Add transition for Linked State to go to Finished state On State Completed
  9. Create another StateTree Component Schema StateTree
  10. Add state to tree called Wait and have it delay for 1 second
  11. Add another state called Succeed on Tick
  12. Add transition to Succeed on Tick that uses On Tick and returns Tree Succeeded
  13. Add transition to Wait that goes to Succeed on Tick On State Completed
  14. Set the StateTree asset in the first StateTree's Linked Asset state to use the second StateTree created
  15. Have an Actor with a StateTree component in the level run the first StateTree created

Expected Result:

The StateTree runs for 1 second and then displays Finished from the debug text task.

Actual Result:

The StateTree continually triggers the On Tick transition but never transitions out of the linked asset Succeed on Tick state as seen in the StateTree Debugger.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-222632 in the post.

0
Login to Vote

Unresolved
ComponentUE - AI - StateTree
Affects Versions5.4.3
Target Fix5.6
CreatedAug 26, 2024
UpdatedSep 17, 2024
View Jira Issue