This commit is contained in:
陈思海 2026-04-07 15:32:20 +08:00
parent a83bdf455c
commit 0f7d062a9f

View File

@ -26,6 +26,7 @@ namespace UnityEngine.UI
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterSceneLoad)]
private static void Bootstrap()
{
if (AppServices.App == null || AppServices.App.Require<IUIService>() == null) return;
EnsureInstance();
UXInputModeService.EnsureInstance();
}
@ -348,10 +349,10 @@ namespace UnityEngine.UI
}
bool suppress = IsScopeAvailable(scope)
&& _topScope != null
&& !ReferenceEquals(scope, _topScope)
&& _topScope.BlockLowerScopes
&& CompareScopePriority(_topScope, scope) < 0;
&& _topScope != null
&& !ReferenceEquals(scope, _topScope)
&& _topScope.BlockLowerScopes
&& CompareScopePriority(_topScope, scope) < 0;
scope.SetNavigationSuppressed(suppress);
}
}