alelievr / NodeGraphProcessor

Node graph editor framework focused on data processing using Unity UIElements and C# 4.6
https://github.com/alelievr/NodeGraphProcessor/projects/2
MIT License
2.21k stars 369 forks source link

ForNode can't work together with WaitNode #230

Open lr8soft opened 5 months ago

lr8soft commented 5 months ago

err

In the example Conditional Graph scene, when ForNode work together with WaitNode, ForNode does not wait for WaitNode to complete the work, but directly completes the loop at once, and the following error log is generated:

Error log: NullReferenceException: Object reference not set to an instance of an object NodeGraphProcessor.Examples.WaitableNode.ProcessFinished () (at Assets/Examples/ConditionalGraph/ConditionalNode.cs:60) NodeGraphProcessor.Examples.WaitMonoBehaviour+<_Process>d__1.MoveNext () (at Assets/Examples/DefaultNodes/Nodes/WaitNode.cs:45) UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at :0)