-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
In Unity (and maybe other environments) it is possible to restart the game in the editor without reloading .NET domain. This speeds up the iteration process by saving the time spent on reloading, but comes with the potential issues due to static fields not being reset properly.
So we should provide a method to reset our statics and use it in Unity whenever the domain is reused:
- revision counter
- auto-observable current
- scheduler state
This is not the most important issue, because these static values are very short-lived, except for revision. Resetting revision, while is a logical thing to do, can cause clashes with user's own observables that persist statically through restarts without domain reloading, so this should be well-documented and maybe even toggleable through a compiler define.
Metadata
Metadata
Assignees
Labels
No labels