Skip to content

Exception thrown by children.ChildContainers in VisualTask when calling AddDivider #114

@bianjingshiyi

Description

@bianjingshiyi

Describe the bug
As my title described.

To Reproduce
Steps to reproduce the behavior:

  1. Create a C# MonoBehavior script.
  2. Add a BehaviorTree field.
  3. Build tree in Awake as the following script:
    new BehaviorTreeBuilder(gameObject).Sequence()
    .WaitTime(1)
    .ReturnSuccess()
    .End().Build()
  4. 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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions