From faaf558e0240e9f19610f840de86dd7768c010ea Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 08 十月 2026 20:44:31 +0800
Subject: [PATCH] 0312 支持团结引擎,每次打包的时候都设置闪屏白底
---
Assets/Launch/SkipUnityLogo/Script/Editor/SplashScreenSetting.cs | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/Assets/Launch/SkipUnityLogo/Script/Editor/SplashScreenSetting.cs b/Assets/Launch/SkipUnityLogo/Script/Editor/SplashScreenSetting.cs
index 40efc7b..f863f6d 100644
--- a/Assets/Launch/SkipUnityLogo/Script/Editor/SplashScreenSetting.cs
+++ b/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");
}
--
Gitblit v1.8.0