From 8398b35b0dc75e69441baefcc5e40c386c962f45 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Wed, 20 Mar 2024 12:22:01 -0500 Subject: [PATCH] Add visibility check to begin play on uicontrol --- Source/Engine/UI/UIControl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Engine/UI/UIControl.cs b/Source/Engine/UI/UIControl.cs index b2c6a4cce..72e3f9625 100644 --- a/Source/Engine/UI/UIControl.cs +++ b/Source/Engine/UI/UIControl.cs @@ -376,7 +376,7 @@ namespace FlaxEngine { if (_control != null) { - _control.Visible = IsActive; + _control.Visible = IsActive && _control.Visible; _control.Parent = GetParent(); _control.IndexInParent = OrderInParent; Internal_GetNavTargets(__unmanagedPtr, out UIControl up, out UIControl down, out UIControl left, out UIControl right);