三国卡牌客户端基础资源仓库
hch
2026-10-08 faaf558e0240e9f19610f840de86dd7768c010ea
0312 支持团结引擎,每次打包的时候都设置闪屏白底
2个文件已修改
14 ■■■■■ 已修改文件
Assets/Editor/Tool/ClientPackage.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Launch/SkipUnityLogo/Script/Editor/SplashScreenSetting.cs 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/Tool/ClientPackage.cs
@@ -77,6 +77,8 @@
    /// <param name="_replace">ios打包导出xcode工程模式,Append和Replace</param>
    public static void BuildPublishers(string _sdkPath, string _assetBundlePath, string _output, string _publisherString, int _buildIndex, bool _development, bool _replace)
    {
        // 白底启动图统一设置:避免换机器/新拉工程后忘记点菜单导致启动画面不一致
        SplashScreenSetting.WhiteSplashScreen();
        var publisherIds = new List<string>();
        var tempStrings = _publisherString.Split(StringUtility.splitSeparator, StringSplitOptions.RemoveEmptyEntries);
Assets/Launch/SkipUnityLogo/Script/Editor/SplashScreenSetting.cs
@@ -17,20 +17,30 @@
        PlayerSettings.SplashScreen.unityLogoStyle = PlayerSettings.SplashScreen.UnityLogoStyle.LightOnDark;
        PlayerSettings.SplashScreen.animationMode = PlayerSettings.SplashScreen.AnimationMode.Static;
        PlayerSettings.SplashScreen.overlayOpacity = 1;
#if TUANJIE_1_5_OR_NEWER
        // 团结引擎把 UnityLogoBelow 改名为 TuanjieLogoBelow
        PlayerSettings.SplashScreen.drawMode = PlayerSettings.SplashScreen.DrawMode.TuanjieLogoBelow;
#else
        PlayerSettings.SplashScreen.drawMode = PlayerSettings.SplashScreen.DrawMode.UnityLogoBelow;
#endif
        PlayerSettings.SplashScreen.blurBackgroundImage = false;
        print("black ok");
    }
    [MenuItem(WhiteMenuPath)]
    static void WhiteSplashScreen()
    public static void WhiteSplashScreen()
    {
        Sprite background = AssetDatabase.LoadAssetAtPath("Assets/Launch/SkipUnityLogo/img/WhiteSplashScreenMask.png", typeof(Sprite)) as Sprite;
        PlayerSettings.SplashScreen.background = background;
        PlayerSettings.SplashScreen.unityLogoStyle = PlayerSettings.SplashScreen.UnityLogoStyle.DarkOnLight;
        PlayerSettings.SplashScreen.animationMode = PlayerSettings.SplashScreen.AnimationMode.Static;
        PlayerSettings.SplashScreen.overlayOpacity = 1;
#if TUANJIE_1_5_OR_NEWER
        // 团结引擎把 UnityLogoBelow 改名为 TuanjieLogoBelow
        PlayerSettings.SplashScreen.drawMode = PlayerSettings.SplashScreen.DrawMode.TuanjieLogoBelow;
#else
        PlayerSettings.SplashScreen.drawMode = PlayerSettings.SplashScreen.DrawMode.UnityLogoBelow;
#endif
        PlayerSettings.SplashScreen.blurBackgroundImage = false;
        print("white ok");
    }