Describe the bug
As my title described.
To Reproduce
Steps to reproduce the behavior:
- Create a C# MonoBehavior script.
- Add a BehaviorTree field.
- Build tree in Awake as the following script:
new BehaviorTreeBuilder(gameObject).Sequence()
.WaitTime(1)
.ReturnSuccess()
.End().Build()
- Click ViewTree button in inspector, see error.
Expected behavior
Throw IndexOutOfRangeException, can be seen in console log.
Desktop (please complete the following information):
- OS: [Windows]
- Exact Unity Version [2022 LTS]