Class CoreResetter
Coordinates static state reset for Fast Enter Play Mode compatibility. All assemblies register their reset callbacks during SubsystemRegistration, and execution is triggered by UnityServicesInitializer at AfterAssembliesLoaded.
Inherited Members
Namespace: Unity.Services.Core
Assembly: Unity.Services.Core.dll
Syntax
public static class CoreResetter
Methods
Register(Action)
Register a callback to be invoked when statics are reset. Call this during SubsystemRegistration phase.
Declaration
public static void Register(Action resetCallback)
Parameters
| Type | Name | Description |
|---|---|---|
| Action | resetCallback | The reset callback to register. |
Events
OnResetComplete
Fired after all registered reset callbacks have been executed.
Declaration
public static event Action OnResetComplete
Event Type
| Type | Description |
|---|---|
| Action |