diff --git a/Source/Editor/Windows/DebugLogWindow.cs b/Source/Editor/Windows/DebugLogWindow.cs index b5d71f6a0..36a7ffa82 100644 --- a/Source/Editor/Windows/DebugLogWindow.cs +++ b/Source/Editor/Windows/DebugLogWindow.cs @@ -735,11 +735,15 @@ namespace FlaxEditor.Windows } /// - public override void OnPlayBegin() + public override void OnPlayBeginning() { // Clear on Play - if (_clearOnPlayButton.Checked) + if (Editor.Options.Options.Interface.DebugLogClearOnPlay) { + lock (_locker) + { + _pendingEntries?.Clear(); + } Clear(); } }