Has anyone else experienced strange operation with graph breakpoints (visual) in NodeCanvas? I have a graph and when I put a breakpoint on a particular node the entire graph will evaluate again when resuming through the Unity editor. This cause a bit of an issue as I was trying to understand why my graph was restarting after end-of-life despite “restart” being unchecked in the graph owner. It turns out that removing the breakpoint resolved this behaviour.
The attached image demonstrates where I think the issue is. The code change that worked for me is as follows:
1
2
if(breakEditor){StartCoroutine(YieldBreak(()=>{if(owner!=null&&owner.isRunning/* there is a chance that the graph could end during a break condition, don't start if this is the case */){owner.StartBehaviour();}}));}
In the latest version 3.2.0 (live on the asset store), I fixed an issue where the graph would Update incorrectly when it was started (it shouldn’t). Can you please try the latest version and let me know if that was indeed the reason of the behaviour you experience?