luis-l / BonsaiBehaviourTree

An advanced behaviour tree solution for the Unity game engine
MIT License
413 stars 45 forks source link

i cant see the current state in the tree designer play mode #26

Open virtouso opened 1 year ago

virtouso commented 1 year ago

the designer is always in edit mode and play mode doesn't show at all. I'm using Unity 2022.

is there something that I have missed?

VectorGC commented 1 year ago

Same problem in Unity 2020.3.27f

VectorGC commented 1 year ago

Alright, I figured it out. The thing is, each tree must have a Root; otherwise, the tree doesn't get saved. Right-click -> Set as Root on any node will fix the issue. I consider this a design problem. For two days, I thought it was a bug and had already given up on the current solution as 'behavior trees.' There's nothing indicating that roots must exist and that they need to be assigned manually.