mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Clear log on play option
This commit is contained in:
@@ -819,6 +819,9 @@ namespace GlitchyEditor
|
||||
{
|
||||
Log.EngineLogger.AssertDebug(_scriptSerializer.SerializedObjectCount == 0, "Somehow some entities are serialized.");
|
||||
|
||||
if (Application.Instance.Settings.EditorSettings.ClearLogOnPlay)
|
||||
Editor.Instance.LogWindow.ClearLog();
|
||||
|
||||
_scriptSerializer.SerializeScriptInstances();
|
||||
|
||||
_editor.SceneViewportWindow.EditorMode = false;
|
||||
|
||||
@@ -194,6 +194,9 @@ class EditorSettings
|
||||
[Setting("Editor", "Switch to Editor on pause", "If checked the editor will automatically switch to the \"Editor\" window when the game is being paused."), BonInclude]
|
||||
public bool SwitchToEditorOnPause = false;
|
||||
|
||||
[Setting("Editor", "Clear log on play", "If checked the message log will be cleared when the play-mode is entered."), BonInclude]
|
||||
public bool ClearLogOnPlay = true;
|
||||
|
||||
[BonInclude]
|
||||
private List<String> _recentProjects ~ DeleteContainerAndItems!(_);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user