Forums › 💬 NodeCanvas › ⚙️ Support › FSM won't update with new editor play mode
Hi,
When enabling the new editor play mode and disable both the domain reload and scene reload, the graphs are updated only during the first play mode.
This is because the MonoManager.isQuitting property is not reset when exiting play mode. (Domain reload reset this property to false).
So, this code address the issue.
(In MonoManager)
public class MonoManager : MonoBehaviour { #if UNITY_EDITOR static bool editorIsQuitting; static MonoManager() { UnityEditor.EditorApplication.quitting += () => editorIsQuitting = true; UnityEditor.EditorApplication.playModeStateChanged += change => isQuiting = editorIsQuitting; } #endif
Hello,
Fast Playmode is fully supported in the upcoming v3.0 There are actually some other (minor) problems other than only MonoManager that have been addressed and I strongly recommend against using fast play-mode until v3 is released.
Thank you.