I found this suddenly after a couple hours debugging by BT. If I just move nodes a little last two nodes switch their relation order.
It make working with BT insanely hard.
I’m using Unity 2018.1.3 and NodeCanvas v2.8 on MacOS.
BehaviourTree nodes are automatically re-ordered in relation to their parent based on their position from left to right, since execution is also happening from left to right.
With that said though, there should be no case where this automatic re-ordering happens only after moving a node, but it should always be the case. As such, I’ve searched a bit within the code and found a bug which does *not* trigger the automatic re-ordering when a new connection is made like when it should. Like this:
What should happen, is this (and as such always be in correct order not only when move node and avoid confusion):
I have just fixed this bug. If you want I can send the fix to you. If so, please drop me and email to support_AT_paradoxnotion.com and I will send you the fixed package.
Thank you for your response.
I’ve managed this issue by “stretching” my BT a little, so if you are planning to do a public release soon I can wait for it! 🙂
Have a good day, and I need to say that NodeCanvas is amazing tool 😉