unity pro版本(花钱购买序列号的正版) 代码设置自己公司的logo

    private void SetScreenLogo()

    {

        PlayerSettings.SplashScreen.showUnityLogo = false;// 屏蔽下方显示unity的logo (包含文字made with unity 和unity 的logo)

        var logo = AssetDatabase.LoadAssetAtPath("Assets/SplashScreen/splash.png", typeof(Sprite)) as Sprite;

        var slogo = PlayerSettings.SplashScreenLogo.Create(2, logo);

        PlayerSettings.SplashScreen.logos = new PlayerSettings.SplashScreenLogo[1] { slogo };

        //Resources.UnloadAsset(logo);

    }

 

打包的时候调用:SetScreenLogo()

你可能感兴趣的:(游戏开发)