Fix crash on exit when C# code was bound to asset unloading event called after C# shutdown

This commit is contained in:
Wojtek Figat
2025-11-18 18:00:02 +01:00
parent 3efb981f00
commit c0dda45c7b
4 changed files with 14 additions and 1 deletions

View File

@@ -57,6 +57,10 @@ public:
static void UnloadScriptingAssemblyLoadContext();
#endif
// Utility for guarding against using C# scripting runtime after shutdown (eg. when asset delegate is not properly disposed).
static bool Ready;
static void OnManagedEventAfterShutdown(const char* eventName);
public:
/// <summary>
/// Utilities for C# object management.