FSM won't update with new editor play mode

Forums 💬 NodeCanvas ⚙️ Support FSM won't update with new editor play mode

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16509
    voktu
    Participant

      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

      #16510
      Gavalakis
      Keymaster

        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.

         

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.