docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    CoreResetter
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)