From e1dcd290b167260bdc6e45726ec5d6b0b7720854 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Thu, 11 Jul 2024 15:48:50 -0500 Subject: [PATCH] Add Editor update event. --- Source/Editor/Editor.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/Editor/Editor.cs b/Source/Editor/Editor.cs index 8af1bc9f4..f5118e74e 100644 --- a/Source/Editor/Editor.cs +++ b/Source/Editor/Editor.cs @@ -247,6 +247,11 @@ namespace FlaxEditor /// public event Action PlayModeEnd; + /// + /// Fired on Editor update + /// + public event Action EditorUpdate; + internal Editor() { Instance = this; @@ -485,6 +490,8 @@ namespace FlaxEditor { StateMachine.CurrentState.UpdateFPS(); } + + EditorUpdate?.Invoke(); // Update modules for (int i = 0; i < _modules.Count; i++)