From 94884fc39a9aba748ff40b5175e95971b09f77f4 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Wed, 22 May 2024 14:52:30 -0500 Subject: [PATCH] Run control update even when UiCanvas skips events. --- Source/Engine/UI/GUI/CanvasRootControl.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Engine/UI/GUI/CanvasRootControl.cs b/Source/Engine/UI/GUI/CanvasRootControl.cs index 4cc16bc10..9ec3c0f1a 100644 --- a/Source/Engine/UI/GUI/CanvasRootControl.cs +++ b/Source/Engine/UI/GUI/CanvasRootControl.cs @@ -200,6 +200,8 @@ namespace FlaxEngine.GUI /// public override void Update(float deltaTime) { + base.Update(deltaTime); + // Update navigation if (SkipEvents) { @@ -215,8 +217,6 @@ namespace FlaxEngine.GUI UpdateNavigation(deltaTime, _canvas.NavigateRight.Name, NavDirection.Right, ref _navigationHeldTimeRight, ref _navigationRateTimeRight); UpdateNavigation(deltaTime, _canvas.NavigateSubmit.Name, ref _navigationHeldTimeSubmit, ref _navigationRateTimeSubmit, SubmitFocused); } - - base.Update(deltaTime); } private void ConditionalNavigate(NavDirection direction)