| | |
| | | public class SplashScreenSetting : MonoBehaviour
|
| | | {
|
| | |
|
| | | const string BlackMenuPath = "EditorTools/SkipUnityLogo/设置启动画面为黑色背景 ";
|
| | | const string WhiteMenuPath = "EditorTools/SkipUnityLogo/设置启动画面为白色背景";
|
| | | const string BlackMenuPath = "EditorTools/SkipUnityLogo/SetBG_Black";
|
| | | const string WhiteMenuPath = "EditorTools/SkipUnityLogo/SetBG_White";
|
| | | [MenuItem(BlackMenuPath)]
|
| | | static void BlackSplashScreen()
|
| | | {
|
| | |
| | | PlayerSettings.SplashScreen.overlayOpacity = 1;
|
| | | PlayerSettings.SplashScreen.drawMode = PlayerSettings.SplashScreen.DrawMode.UnityLogoBelow;
|
| | | PlayerSettings.SplashScreen.blurBackgroundImage = false;
|
| | | print("黑色游戏启动画面已设置完成");
|
| | | print("black ok");
|
| | | }
|
| | |
|
| | | [MenuItem(WhiteMenuPath)]
|
| | |
| | | PlayerSettings.SplashScreen.overlayOpacity = 1;
|
| | | PlayerSettings.SplashScreen.drawMode = PlayerSettings.SplashScreen.DrawMode.UnityLogoBelow;
|
| | | PlayerSettings.SplashScreen.blurBackgroundImage = false;
|
| | | print("白色游戏启动画面已设置完成");
|
| | | print("white ok");
|
| | | }
|
| | | }
|
| | | #endif |