Add Editor update event.

This commit is contained in:
Chandler Cox
2024-07-11 15:48:50 -05:00
parent 009e1aaebb
commit e1dcd290b1

View File

@@ -247,6 +247,11 @@ namespace FlaxEditor
/// </summary>
public event Action PlayModeEnd;
/// <summary>
/// Fired on Editor update
/// </summary>
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++)