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()

Logo

讨论HarmonyOS开发技术,专注于API与组件、DevEco Studio、测试、元服务和应用上架分发等。

更多推荐