File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1313
1414#if UNITY_EDITOR
1515using UnityEditor ;
16- using UnityEngine ;
1716using UnityEditor . Build ;
1817using UnityEditor . Build . Reporting ;
1918
20- public sealed class SetSplashScreenBlack : IPreprocessBuildWithReport
19+ public class SplashScreenModifier : IPreprocessBuildWithReport
2120{
2221 public int callbackOrder { get { return 0 ; } }
2322
2423 public void OnPreprocessBuild ( BuildReport report )
24+ {
25+ RemoveAllLogos ( ) ;
26+ SetSplashScreenBackground ( ) ;
27+ }
28+
29+ private static void RemoveAllLogos ( ) =>
30+ PlayerSettings . SplashScreen . logos = new PlayerSettings . SplashScreenLogo [ 0 ] ;
31+
32+ private static void SetSplashScreenBackground ( )
2533 {
2634 PlayerSettings . SplashScreen . unityLogoStyle = PlayerSettings . SplashScreen . UnityLogoStyle . LightOnDark ;
2735 PlayerSettings . SplashScreen . backgroundColor = Color . black ;
You can’t perform that action at this time.
0 commit comments