Skip to content

Issues with domain reload and configurable play mode options #5

Description

@Tavrox

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions