Add visibility check to begin play on uicontrol

This commit is contained in:
Chandler Cox
2024-03-20 12:22:01 -05:00
parent 9e11d45c1c
commit 8398b35b0d

View File

@@ -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);