mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Reload scripts in Play Mode!!!
- Dont serialize static fields - Added some profiling to ScriptEngine - Removed superseded ScriptFieldMaps
This commit is contained in:
@@ -560,8 +560,6 @@ namespace GlitchyEditor.EditWindows
|
||||
className == scriptComponent.ScriptClassName))
|
||||
{
|
||||
scriptComponent.ScriptClassName = scriptClass.FullName;
|
||||
|
||||
ScriptEngine.CreateScriptFieldMap(entity);
|
||||
}
|
||||
}
|
||||
ImGui.EndPopup();
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user