extDebug icon indicating copy to clipboard operation
extDebug copied to clipboard

Issues with domain reload and configurable play mode options

Open Tavrox opened this issue 10 months ago • 0 comments

Hello !

There are static variables that make this tool hard to use with Play Options (Experimental) around Domain Reloading.

Configurable play mode : https://docs.unity3d.com/Manual/ConfigurableEnterPlayMode.html

Check out : https://forum.unity.com/threads/can-you-stop-editor-scripts-losing-static-variables-on-script-reload.1217958/

Repro :

  • Launch the game in editor
  • Cancel the play with play button
  • Relaunch play fast (thanks to domain reload)
  • The debug menu is hard to relaunch

I think the faulty static variables are those one :

	#region Static Public Methods

	public static EventArgs OpenBranch => new EventArgs { Tag = EventTag.OpenBranch };

	public static EventArgs CloseBranch => new EventArgs { Tag = EventTag.CloseBranch };

	public static EventArgs Repaint => new EventArgs { Tag = EventTag.Repaint };

	#endregion

Tavrox avatar Apr 19 '24 03:04 Tavrox