Closed Sergan4ik closed 2 years ago
Resetting Context in Start Worked for me.
_contexts = Contexts.sharedInstance;
_contexts.Reset();
another solution is creating a new Context in Start
potential duplicate #967
The reason is because turn off"Reload domain" would not reset those static fields. Add this code somewhere should fix this problem.
[InitializeOnEnterPlayMode]
public static void ReloadContext()
{
Contexts.sharedInstance = null;
}
or @sschmid have time to modify generator generate this one in context. I would like to help but have no idea howto..
Hi,
I found a bug, when you replay game in editor without "Reload Domain" option , there is no context observers in DontDestroyOnLoad
Inspector, after reload domain (any change in code)
Inspector, if code the same, but starts game once more time
If create observers manually, entities is duping , and can't collapse observers in inspector First time: Second: Third:
etc