Reload scripts in Play Mode!!!

- Dont serialize static fields
- Added some profiling to ScriptEngine
- Removed superseded ScriptFieldMaps
This commit is contained in:
Simon Lübeß
2023-12-24 01:33:48 +01:00
parent d0f0a34247
commit abb119589c
7 changed files with 58 additions and 169 deletions
-4
View File
@@ -1003,8 +1003,6 @@ namespace GlitchyEditor
// Clear serialized data, so that we don't waste time deserializing it.
ClearPrePlaySerializedData();
OnSceneStop();
ScriptEngine.ClearEntityScriptFields();
}
/// Creates a new scene and openes it.
@@ -1130,8 +1128,6 @@ namespace GlitchyEditor
{
CloseCurrentScene();
ScriptEngine.ClearEntityScriptFields();
SceneFilePath = scope String(filename);
using (Scene newScene = new Scene())