Fix crash after scripting hot-reload in editor due to cached class attribute objects

#1108
This commit is contained in:
Wojtek Figat
2023-05-19 13:53:49 +02:00
parent 7b8c013918
commit 144b72109b
5 changed files with 33 additions and 0 deletions

View File

@@ -45,6 +45,11 @@ public:
/// </summary>
static void UnloadEngine();
#if USE_EDITOR
// Called by Scripting in a middle of hot-reload (after unloading modules but before loading them again).
static void OnMidHotReload();
#endif
public:
/// <summary>
/// Utilities for C# object management.