Skip to content

API.Unity.Hot Reload

JuDelCo edited this page Jun 19, 2021 · 1 revision

UnityHotReload

This class will reload all loaded services on recompile automatically. By default will pause the editor player (you can override this behaviour with the SetPauseOnCompile static method).

You can use the events to hook to pre-recompilation and post-recompilation events in runtime.

The property IsSafeToUseUnityAPI can be used to make sure you can use the Unity API outside the serialization/deserialization thread.

static bool IsSafeToUseUnityAPI;
static void ForceRecompile();
static void SetPauseOnCompile(bool enabled);

Events

UnityHotReloadEndEvent;
UnityHotReloadStartEvent;
Clone this wiki locally