Fix scripting AssemblyLoadContext not getting unloaded

This commit is contained in:
2024-04-22 00:11:24 +03:00
committed by Ari Vuollet
parent 83c3201ef8
commit beff9d5241
8 changed files with 159 additions and 58 deletions

View File

@@ -45,9 +45,16 @@ public:
/// </summary>
static void UnloadEngine();
/// <summary>
/// Creates the assembly load context for assemblies used by Scripting.
/// </summary>
static void CreateScriptingAssemblyLoadContext();
#if USE_EDITOR
// Called by Scripting in a middle of hot-reload (after unloading modules but before loading them again).
static void ReloadScriptingAssemblyLoadContext();
/// <summary>
/// Called by Scripting in a middle of hot-reload (after unloading modules but before loading them again).
/// </summary>
static void UnloadScriptingAssemblyLoadContext();
#endif
public: