三国卡牌客户端基础资源仓库
macos
2026-06-28 46293865e95da2a78581c16f492539766ea84540
Assets/Editor/Tool/ClientPackage.cs
@@ -1068,6 +1068,10 @@
            projectSettings.FindProperty("iOSLaunchScreeniPadType").intValue = 1;
            // 设置 iPad 启动图
            projectSettings.FindProperty("iOSLaunchScreeniPadImage").objectReferenceValue = splashImage.texture;
            // 关键修复:Unity 闪屏背景色设为黑色,与 LaunchScreen 黑色背景一致
            // iOS 16 上 SkipUnityLogo 的 Task.Run 可能无法及时执行 SplashScreen.Stop(),
            // Unity 闪屏会短暂露出背景色。设为黑色后即便露出也跟 LaunchScreen 无缝衔接。
            projectSettings.FindProperty("m_SplashScreenBackgroundColor").boxedValue = Color.black;
            projectSettings.ApplyModifiedProperties();
            Debug.Log($"[ClientPackage] iOS LaunchScreen 已设置,version: {_versionName}");
        }