赞
踩
- using UnityEditor;
-
- public class BuildUtil
- {
- public static void SetSplashScreen()
- {
- PlayerSetttings.SplashScreen.show = true;
- var logo = new PlayerSetttings.SplashScreenLogo();
- //设置闪屏时间
- logo.duration = 4f;
- //设置闪屏背景颜色
- PlayerSetttings.SplashScreen.backgroundColor = Color.white;
- //设置闪屏logo
- logo.logo = AssetDatabase.LoadAssetAtPath<Sprite>("Assets/Texture/splash.png");
-
- PlayerSetttings.SplashScreen.logos = new PlayerSetttings.SplashScreenLogo[1] { logo };
- }
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。