I’m not sure why I get this error when I stop the play mode in editor:
MissingReferenceException: The object of type ‘MonoManager’ has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEngine.MonoBehaviour.StopCoroutine (UnityEngine.Coroutine routine) (at <3dc54541a2574ac7826a004a212a4332>:0)
NodeCanvas.Framework.Node.StopCoroutine (UnityEngine.Coroutine routine) (at Assets/ParadoxNotion/CanvasCore/Framework/Runtime/Graphs/Node.cs:422)
FlowCanvas.Nodes.LatentActionNodeBase.BreakAll (System.Boolean callFinish) (at Assets/ParadoxNotion/FlowCanvas/Modules/FlowGraphs/Nodes/Functions/Implemented/LatentActionNode.cs:67)
FlowCanvas.Nodes.LatentActionNodeBase.OnGraphStoped () (at Assets/ParadoxNotion/FlowCanvas/Modules/FlowGraphs/Nodes/Functions/Implemented/LatentActionNode.cs:46)
FlowCanvas.Nodes.SimplexNodeWrapper`1[T].OnGraphStoped () (at Assets/ParadoxNotion/FlowCanvas/Modules/FlowGraphs/Nodes/Functions/Implemented/SimplexNodeWrapper.cs:71)
NodeCanvas.Framework.Graph.Stop (System.Boolean success) (at Assets/ParadoxNotion/CanvasCore/Framework/Runtime/Graphs/Graph.cs:603)
NodeCanvas.Framework.GraphOwner.StopBehaviour (System.Boolean success) (at Assets/ParadoxNotion/CanvasCore/Framework/Runtime/Graphs/GraphOwner.cs:234)
NodeCanvas.Framework.GraphOwner.OnDisable () (at Assets/ParadoxNotion/CanvasCore/Framework/Runtime/Graphs/GraphOwner.cs:393)
You are right. This can happen is certain cases. To fix this null reference error, please open up Node.cs file and change lines #415 – 423, to be like this:
1
2
3
4
5
6
7
8
9
10
11
///Nodes can use coroutine as normal through MonoManager.