/// <summary> /// Loads current player settings. /// </summary> public void LoadSettings() { defaultOrientation.Value = PlayerSettings.defaultInterfaceOrientation; defaultOrientation.UseExpression = false; statusBarHidden.Value = PlayerSettings.statusBarHidden; statusBarHidden.UseExpression = false; use32BitDisplayBuffer.Value = PlayerSettings.use32BitDisplayBuffer; use32BitDisplayBuffer.UseExpression = false; use24BitDepthBuffer.Value = PlayerSettings.Android.use24BitDepthBuffer; use24BitDepthBuffer.UseExpression = false; showActivityIndicatorOnLoading.Value = PlayerSettings.Android.showActivityIndicatorOnLoading; showActivityIndicatorOnLoading.UseExpression = false; UTPlayerSettingsExt extPlayerSettings = new UTPlayerSettingsExt(); mobileSplashScreen.Value = extPlayerSettings.MobileSplashScreen; mobileSplashScreen.UseExpression = false; splashScaling.Value = PlayerSettings.Android.splashScreenScale; splashScaling.UseExpression = false; bundleIdentifier.Value = PlayerSettings.bundleIdentifier; bundleIdentifier.UseExpression = false; bundleVersion.Value = PlayerSettings.bundleVersion; bundleVersion.UseExpression = false; bundleVersionCode.Value = PlayerSettings.Android.bundleVersionCode; bundleVersionCode.UseExpression = false; minimumApiLevel.Value = PlayerSettings.Android.minSdkVersion; minimumApiLevel.UseExpression = false; targetDevice.Value = PlayerSettings.Android.targetDevice; targetDevice.UseExpression = false; #if UNITY_3_5 targetGraphics.Value = PlayerSettings.Android.targetGraphics; targetGraphics.UseExpression = false; #endif #if !UNITY_3_5 targetGlesGraphics.Value = PlayerSettings.targetGlesGraphics; targetGlesGraphics.UseExpression = false; #endif installLocation.Value = PlayerSettings.Android.preferredInstallLocation; installLocation.UseExpression = false; forceInternetPermission.Value = PlayerSettings.Android.forceInternetPermission; forceInternetPermission.UseExpression = false; forceSDCardPermission.Value = PlayerSettings.Android.forceSDCardPermission; forceSDCardPermission.UseExpression = false; apiCompatibilityLevel.Value = PlayerSettings.apiCompatibilityLevel; apiCompatibilityLevel.UseExpression = false; optimizeMeshData.Value = PlayerSettings.stripUnusedMeshComponents; optimizeMeshData.UseExpression = false; #if UNITY_3_5 debugUnloadMode.Value = PlayerSettings.debugUnloadMode; debugUnloadMode.UseExpression = false; #endif keyStore.Value = PlayerSettings.Android.keystoreName; keyStore.UseExpression = false; keyStorePassword.Value = PlayerSettings.Android.keystorePass; keyStorePassword.UseExpression = false; keyAlias.Value = PlayerSettings.Android.keyaliasName; keyAlias.UseExpression = false; keyPassword.Value = PlayerSettings.Android.keyaliasPass; keyPassword.UseExpression = false; }
/// <summary> /// Loads current player settings. /// </summary> public void LoadSettings() { defaultOrientation.Value = PlayerSettings.defaultInterfaceOrientation; defaultOrientation.UseExpression = false; statusBarHidden.Value = PlayerSettings.statusBarHidden; statusBarHidden.UseExpression = false; statusBarStyle.Value = PlayerSettings.iOS.statusBarStyle; statusBarStyle.UseExpression = false; use32BitDisplayBuffer.Value = PlayerSettings.use32BitDisplayBuffer; use32BitDisplayBuffer.UseExpression = false; showActivityIndicatorOnLoading.Value = PlayerSettings.iOS.showActivityIndicatorOnLoading; showActivityIndicatorOnLoading.UseExpression = false; UTPlayerSettingsExt extSettings = new UTPlayerSettingsExt(); mobileSplashScreen.Value = extSettings.MobileSplashScreen; mobileSplashScreen.UseExpression = false; highResIphone.Value = extSettings.IPhoneHighResSplashScreen; highResIphone.UseExpression = false; highResIphoneTall.Value = extSettings.IPhoneTallHighResSplashScreen; highResIphoneTall.UseExpression = false; iPadPortrait.Value = extSettings.IPadPortraitSplashScreen; iPadPortrait.UseExpression = false; iPadLandscape.Value = extSettings.IPadLandscapeSplashScreen; iPadLandscape.UseExpression = false; highResIpadPortrait.Value = extSettings.IPadHighResPortraitSplashScreen; highResIpadPortrait.UseExpression = false; highResIpadLandscape.Value = extSettings.IPadHighResLandscapeSplashScreen; highResIpadLandscape.UseExpression = false; prerenderedIcon.Value = PlayerSettings.iOS.prerenderedIcon; prerenderedIcon.UseExpression = false; bundleIdentifier.Value = PlayerSettings.bundleIdentifier; bundleIdentifier.UseExpression = false; bundleVersion.Value = PlayerSettings.bundleVersion; bundleVersion.UseExpression = false; targetDevice.Value = PlayerSettings.iOS.targetDevice; targetDevice.UseExpression = false; #if UNITY_3_5 targetPlatform.Value = PlayerSettings.iOS.targetPlatform; targetPlatform.UseExpression = false; #endif #if !UNITY_3_5 targetGlesGraphics.Value = PlayerSettings.targetGlesGraphics; targetGlesGraphics.UseExpression = false; #endif //targetResolution.Value = PlayerSettings.iOS.targetResolution; targetResolution.UseExpression = false; accelerometerFrequency.Value = PlayerSettings.accelerometerFrequency; accelerometerFrequency.UseExpression = false; requiresPersistentWifi.Value = PlayerSettings.iOS.requiresPersistentWiFi; requiresPersistentWifi.UseExpression = false; exitOnSuspend.Value = PlayerSettings.iOS.exitOnSuspend; exitOnSuspend.UseExpression = false; apiCompatibilityLevel.Value = PlayerSettings.apiCompatibilityLevel; apiCompatibilityLevel.UseExpression = false; aotCompilationOptions.Value = PlayerSettings.aotOptions; aotCompilationOptions.UseExpression = false; sdkVersion.Value = PlayerSettings.iOS.sdkVersion; sdkVersion.UseExpression = false; targetOsVersion.Value = PlayerSettings.iOS.targetOSVersion; targetOsVersion.UseExpression = false; scriptCallOptimizationLevel.Value = PlayerSettings.iOS.scriptCallOptimization; scriptCallOptimizationLevel.UseExpression = false; optimizeMeshData.Value = PlayerSettings.stripUnusedMeshComponents; optimizeMeshData.UseExpression = false; #if UNITY_3_5 debugUnloadMode.Value = PlayerSettings.debugUnloadMode; debugUnloadMode.UseExpression = false; #endif }
public override IEnumerator Execute(UTContext context) { if (UTPreferences.DebugMode) { Debug.Log ("Modifying Android player settings.", this); } var theBundleIdentifier = bundleIdentifier.EvaluateIn (context); if (string.IsNullOrEmpty (theBundleIdentifier)) { throw new UTFailBuildException ("You need to specify the bundle identifier.", this); } var theBundleVersion = bundleVersion.EvaluateIn (context); if (string.IsNullOrEmpty (theBundleVersion)) { throw new UTFailBuildException ("You need to specify the bundle version.", this); } var theKeyStore = keyStore.EvaluateIn(context); if (!string.IsNullOrEmpty(theKeyStore) && !File.Exists(theKeyStore)) { throw new UTFailBuildException("The specified keystore does not exist.", this); } PlayerSettings.defaultInterfaceOrientation = defaultOrientation.EvaluateIn (context); PlayerSettings.statusBarHidden = statusBarHidden.EvaluateIn (context); PlayerSettings.use32BitDisplayBuffer = use32BitDisplayBuffer.EvaluateIn (context); PlayerSettings.Android.use24BitDepthBuffer = use24BitDepthBuffer.EvaluateIn(context); PlayerSettings.Android.showActivityIndicatorOnLoading = showActivityIndicatorOnLoading.EvaluateIn (context); UTPlayerSettingsExt extPlayerSettings = new UTPlayerSettingsExt(); extPlayerSettings.MobileSplashScreen = mobileSplashScreen.EvaluateIn(context); extPlayerSettings.Apply(); PlayerSettings.Android.splashScreenScale = splashScaling.EvaluateIn(context); PlayerSettings.bundleIdentifier = theBundleIdentifier; PlayerSettings.bundleVersion = theBundleVersion; PlayerSettings.Android.bundleVersionCode = bundleVersionCode.EvaluateIn(context); PlayerSettings.Android.minSdkVersion = minimumApiLevel.EvaluateIn(context); PlayerSettings.Android.targetDevice = targetDevice.EvaluateIn (context); #if UNITY_3_5 PlayerSettings.Android.targetGraphics = targetGraphics.EvaluateIn (context); #endif #if !UNITY_3_5 PlayerSettings.targetGlesGraphics = targetGlesGraphics.EvaluateIn(context); #endif PlayerSettings.Android.preferredInstallLocation = installLocation.EvaluateIn (context); PlayerSettings.Android.forceInternetPermission = forceInternetPermission.EvaluateIn(context); PlayerSettings.Android.forceSDCardPermission = forceSDCardPermission.EvaluateIn (context); PlayerSettings.apiCompatibilityLevel = apiCompatibilityLevel.EvaluateIn(context); PlayerSettings.stripUnusedMeshComponents = optimizeMeshData.EvaluateIn(context); #if UNITY_3_5 PlayerSettings.debugUnloadMode = debugUnloadMode.EvaluateIn(context); #endif PlayerSettings.Android.keystoreName = theKeyStore; PlayerSettings.Android.keystorePass = keyStorePassword.EvaluateIn(context); PlayerSettings.Android.keyaliasName = keyAlias.EvaluateIn(context); PlayerSettings.Android.keyaliasPass = keyPassword.EvaluateIn(context); if (UTPreferences.DebugMode) { Debug.Log ("Android player settings modified.", this); } yield return ""; }
public override IEnumerator Execute(UTContext context) { if (UTPreferences.DebugMode) { Debug.Log("Modifying iOS player settings.", this); } var theBundleIdentifier = bundleIdentifier.EvaluateIn(context); if (string.IsNullOrEmpty(theBundleIdentifier)) { throw new UTFailBuildException("You need to specify the bundle identifier.", this); } var theBundleVersion = bundleVersion.EvaluateIn(context); if (string.IsNullOrEmpty(theBundleVersion)) { throw new UTFailBuildException("You need to specify the bundle version.", this); } var theFrequency = accelerometerFrequency.EvaluateIn(context); if (theFrequency != 0 && theFrequency != 15 && theFrequency != 30 && theFrequency != 60 && theFrequency != 100) { throw new UTFailBuildException("Invalid accelerometer frequency. Valid values for accelerometer frequencies are 0, 15, 30, 60 and 100.", this); } PlayerSettings.defaultInterfaceOrientation = defaultOrientation.EvaluateIn(context); PlayerSettings.statusBarHidden = statusBarHidden.EvaluateIn(context); PlayerSettings.iOS.statusBarStyle = statusBarStyle.EvaluateIn(context); PlayerSettings.use32BitDisplayBuffer = use32BitDisplayBuffer.EvaluateIn(context); PlayerSettings.iOS.showActivityIndicatorOnLoading = showActivityIndicatorOnLoading.EvaluateIn(context); UTPlayerSettingsExt extSettings = new UTPlayerSettingsExt(); extSettings.MobileSplashScreen = mobileSplashScreen.EvaluateIn(context); extSettings.IPhoneHighResSplashScreen = highResIphone.EvaluateIn(context); extSettings.IPhoneTallHighResSplashScreen = highResIphoneTall.EvaluateIn(context); extSettings.IPadPortraitSplashScreen = iPadPortrait.EvaluateIn(context); extSettings.IPadLandscapeSplashScreen = iPadLandscape.EvaluateIn(context); extSettings.IPadHighResPortraitSplashScreen = highResIpadPortrait.EvaluateIn(context); extSettings.IPadHighResLandscapeSplashScreen = highResIpadLandscape.EvaluateIn(context); extSettings.Apply(); PlayerSettings.iOS.prerenderedIcon = prerenderedIcon.EvaluateIn(context); PlayerSettings.bundleIdentifier = theBundleIdentifier; PlayerSettings.bundleVersion = theBundleVersion; PlayerSettings.iOS.targetDevice = targetDevice.EvaluateIn(context); #if UNITY_3_5 PlayerSettings.iOS.targetPlatform = targetPlatform.EvaluateIn(context); #endif #if !UNITY_3_5 PlayerSettings.targetGlesGraphics = targetGlesGraphics.EvaluateIn(context); #endif //PlayerSettings.iOS.targetResolution = targetResolution.EvaluateIn (context); PlayerSettings.accelerometerFrequency = theFrequency; PlayerSettings.iOS.requiresPersistentWiFi = requiresPersistentWifi.EvaluateIn(context); PlayerSettings.iOS.exitOnSuspend = exitOnSuspend.EvaluateIn(context); PlayerSettings.apiCompatibilityLevel = apiCompatibilityLevel.EvaluateIn(context); PlayerSettings.aotOptions = aotCompilationOptions.EvaluateIn(context); PlayerSettings.iOS.sdkVersion = sdkVersion.EvaluateIn(context); PlayerSettings.iOS.targetOSVersion = targetOsVersion.EvaluateIn(context); PlayerSettings.iOS.scriptCallOptimization = scriptCallOptimizationLevel.EvaluateIn(context); PlayerSettings.stripUnusedMeshComponents = optimizeMeshData.EvaluateIn(context); #if UNITY_3_5 PlayerSettings.debugUnloadMode = debugUnloadMode.EvaluateIn(context); #endif if (UTPreferences.DebugMode) { Debug.Log("iOS player settings modified.", this); } yield return(""); }
/// <summary> /// Loads current player settings. /// </summary> public void LoadSettings() { defaultOrientation.Value = PlayerSettings.defaultInterfaceOrientation; defaultOrientation.UseExpression = false; statusBarHidden.Value = PlayerSettings.statusBarHidden; statusBarHidden.UseExpression = false; statusBarStyle.Value = PlayerSettings.iOS.statusBarStyle; statusBarStyle.UseExpression = false; use32BitDisplayBuffer.Value = PlayerSettings.use32BitDisplayBuffer; use32BitDisplayBuffer.UseExpression = false; showActivityIndicatorOnLoading.Value = PlayerSettings.iOS.showActivityIndicatorOnLoading; showActivityIndicatorOnLoading.UseExpression = false; UTPlayerSettingsExt extSettings = new UTPlayerSettingsExt(); mobileSplashScreen.Value = extSettings.MobileSplashScreen; mobileSplashScreen.UseExpression = false; highResIphone.Value = extSettings.IPhoneHighResSplashScreen; highResIphone.UseExpression = false; highResIphoneTall.Value = extSettings.IPhoneTallHighResSplashScreen; highResIphoneTall.UseExpression = false; iPadPortrait.Value = extSettings.IPadPortraitSplashScreen; iPadPortrait.UseExpression = false; iPadLandscape.Value = extSettings.IPadLandscapeSplashScreen; iPadLandscape.UseExpression = false; highResIpadPortrait.Value = extSettings.IPadHighResPortraitSplashScreen; highResIpadPortrait.UseExpression = false; highResIpadLandscape.Value = extSettings.IPadHighResLandscapeSplashScreen; highResIpadLandscape.UseExpression = false; prerenderedIcon.Value = PlayerSettings.iOS.prerenderedIcon; prerenderedIcon.UseExpression = false; bundleIdentifier.Value = PlayerSettings.bundleIdentifier; bundleIdentifier.UseExpression = false; bundleVersion.Value = PlayerSettings.bundleVersion; bundleVersion.UseExpression = false; targetDevice.Value = PlayerSettings.iOS.targetDevice; targetDevice.UseExpression = false; #if UNITY_3_5 targetPlatform.Value = PlayerSettings.iOS.targetPlatform; targetPlatform.UseExpression = false; #endif #if !UNITY_3_5 targetGlesGraphics.Value = PlayerSettings.targetGlesGraphics; targetGlesGraphics.UseExpression = false; #endif targetResolution.Value = PlayerSettings.iOS.targetResolution; targetResolution.UseExpression = false; accelerometerFrequency.Value = PlayerSettings.accelerometerFrequency; accelerometerFrequency.UseExpression = false; requiresPersistentWifi.Value = PlayerSettings.iOS.requiresPersistentWiFi; requiresPersistentWifi.UseExpression = false; exitOnSuspend.Value = PlayerSettings.iOS.exitOnSuspend; exitOnSuspend.UseExpression = false; apiCompatibilityLevel.Value = PlayerSettings.apiCompatibilityLevel; apiCompatibilityLevel.UseExpression = false; aotCompilationOptions.Value = PlayerSettings.aotOptions; aotCompilationOptions.UseExpression = false; sdkVersion.Value = PlayerSettings.iOS.sdkVersion; sdkVersion.UseExpression = false; targetOsVersion.Value = PlayerSettings.iOS.targetOSVersion; targetOsVersion.UseExpression = false; scriptCallOptimizationLevel.Value = PlayerSettings.iOS.scriptCallOptimization; scriptCallOptimizationLevel.UseExpression = false; optimizeMeshData.Value = PlayerSettings.stripUnusedMeshComponents; optimizeMeshData.UseExpression = false; #if UNITY_3_5 debugUnloadMode.Value = PlayerSettings.debugUnloadMode; debugUnloadMode.UseExpression = false; #endif }
public override IEnumerator Execute(UTContext context) { if (UTPreferences.DebugMode) { Debug.Log ("Modifying iOS player settings.", this); } var theBundleIdentifier = bundleIdentifier.EvaluateIn (context); if (string.IsNullOrEmpty (theBundleIdentifier)) { throw new UTFailBuildException ("You need to specify the bundle identifier.", this); } var theBundleVersion = bundleVersion.EvaluateIn (context); if (string.IsNullOrEmpty (theBundleVersion)) { throw new UTFailBuildException ("You need to specify the bundle version.", this); } var theFrequency = accelerometerFrequency.EvaluateIn(context); if (theFrequency != 0 && theFrequency != 15 && theFrequency != 30 && theFrequency != 60 && theFrequency != 100) { throw new UTFailBuildException("Invalid accelerometer frequency. Valid values for accelerometer frequencies are 0, 15, 30, 60 and 100.", this); } PlayerSettings.defaultInterfaceOrientation = defaultOrientation.EvaluateIn (context); PlayerSettings.statusBarHidden = statusBarHidden.EvaluateIn (context); PlayerSettings.iOS.statusBarStyle = statusBarStyle.EvaluateIn (context); PlayerSettings.use32BitDisplayBuffer = use32BitDisplayBuffer.EvaluateIn (context); PlayerSettings.iOS.showActivityIndicatorOnLoading = showActivityIndicatorOnLoading.EvaluateIn (context); UTPlayerSettingsExt extSettings = new UTPlayerSettingsExt(); extSettings.MobileSplashScreen = mobileSplashScreen.EvaluateIn(context); extSettings.IPhoneHighResSplashScreen = highResIphone.EvaluateIn(context); extSettings.IPhoneTallHighResSplashScreen = highResIphoneTall.EvaluateIn(context); extSettings.IPadPortraitSplashScreen = iPadPortrait.EvaluateIn(context); extSettings.IPadLandscapeSplashScreen = iPadLandscape.EvaluateIn(context); extSettings.IPadHighResPortraitSplashScreen = highResIpadPortrait.EvaluateIn(context); extSettings.IPadHighResLandscapeSplashScreen = highResIpadLandscape.EvaluateIn(context); extSettings.Apply(); PlayerSettings.iOS.prerenderedIcon = prerenderedIcon.EvaluateIn (context); PlayerSettings.bundleIdentifier = theBundleIdentifier; PlayerSettings.bundleVersion = theBundleVersion; PlayerSettings.iOS.targetDevice = targetDevice.EvaluateIn (context); #if UNITY_3_5 PlayerSettings.iOS.targetPlatform = targetPlatform.EvaluateIn (context); #endif #if !UNITY_3_5 PlayerSettings.targetGlesGraphics = targetGlesGraphics.EvaluateIn(context); #endif PlayerSettings.iOS.targetResolution = targetResolution.EvaluateIn (context); PlayerSettings.accelerometerFrequency = theFrequency; PlayerSettings.iOS.requiresPersistentWiFi = requiresPersistentWifi.EvaluateIn (context); PlayerSettings.iOS.exitOnSuspend = exitOnSuspend.EvaluateIn (context); PlayerSettings.apiCompatibilityLevel = apiCompatibilityLevel.EvaluateIn(context); PlayerSettings.aotOptions = aotCompilationOptions.EvaluateIn(context); PlayerSettings.iOS.sdkVersion = sdkVersion.EvaluateIn (context); PlayerSettings.iOS.targetOSVersion = targetOsVersion.EvaluateIn (context); PlayerSettings.iOS.scriptCallOptimization = scriptCallOptimizationLevel.EvaluateIn (context); PlayerSettings.stripUnusedMeshComponents = optimizeMeshData.EvaluateIn(context); #if UNITY_3_5 PlayerSettings.debugUnloadMode = debugUnloadMode.EvaluateIn(context); #endif if (UTPreferences.DebugMode) { Debug.Log ("iOS player settings modified.", this); } yield return ""; }
/// <summary> /// Loads current player settings. /// </summary> public void LoadSettings() { defaultOrientation.Value = PlayerSettings.defaultInterfaceOrientation; defaultOrientation.UseExpression = false; statusBarHidden.Value = PlayerSettings.statusBarHidden; statusBarHidden.UseExpression = false; use32BitDisplayBuffer.Value = PlayerSettings.use32BitDisplayBuffer; use32BitDisplayBuffer.UseExpression = false; use24BitDepthBuffer.Value = PlayerSettings.Android.use24BitDepthBuffer; use24BitDepthBuffer.UseExpression = false; showActivityIndicatorOnLoading.Value = PlayerSettings.Android.showActivityIndicatorOnLoading; showActivityIndicatorOnLoading.UseExpression = false; UTPlayerSettingsExt extPlayerSettings = new UTPlayerSettingsExt(); mobileSplashScreen.Value = extPlayerSettings.MobileSplashScreen; mobileSplashScreen.UseExpression = false; splashScaling.Value = PlayerSettings.Android.splashScreenScale; splashScaling.UseExpression = false; bundleIdentifier.Value = PlayerSettings.bundleIdentifier; bundleIdentifier.UseExpression = false; bundleVersion.Value = PlayerSettings.bundleVersion; bundleVersion.UseExpression = false; bundleVersionCode.Value = PlayerSettings.Android.bundleVersionCode; bundleVersionCode.UseExpression = false; minimumApiLevel.Value = PlayerSettings.Android.minSdkVersion; minimumApiLevel.UseExpression = false; targetDevice.Value = PlayerSettings.Android.targetDevice; targetDevice.UseExpression = false; #if UNITY_3_5 targetGraphics.Value = PlayerSettings.Android.targetGraphics; targetGraphics.UseExpression = false; #endif #if !UNITY_3_5 targetGlesGraphics.Value = PlayerSettings.targetGlesGraphics; targetGlesGraphics.UseExpression = false; #endif installLocation.Value = PlayerSettings.Android.preferredInstallLocation; installLocation.UseExpression = false; forceInternetPermission.Value = PlayerSettings.Android.forceInternetPermission; forceInternetPermission.UseExpression = false; forceSDCardPermission.Value = PlayerSettings.Android.forceSDCardPermission; forceSDCardPermission.UseExpression = false; apiCompatibilityLevel.Value = PlayerSettings.apiCompatibilityLevel; apiCompatibilityLevel.UseExpression = false; optimizeMeshData.Value = PlayerSettings.stripUnusedMeshComponents; optimizeMeshData.UseExpression = false; #if UNITY_3_5 debugUnloadMode.Value = PlayerSettings.debugUnloadMode; debugUnloadMode.UseExpression = false; #endif keyStore.Value = PlayerSettings.Android.keystoreName; keyStore.UseExpression = false; keyStorePassword.Value = PlayerSettings.Android.keystorePass; keyStorePassword.UseExpression = false; keyAlias.Value = PlayerSettings.Android.keyaliasName; keyAlias.UseExpression = false; keyPassword.Value = PlayerSettings.Android.keyaliasPass; keyPassword.UseExpression = false; }
public override IEnumerator Execute(UTContext context) { if (UTPreferences.DebugMode) { Debug.Log("Modifying Android player settings.", this); } var theBundleIdentifier = bundleIdentifier.EvaluateIn(context); if (string.IsNullOrEmpty(theBundleIdentifier)) { throw new UTFailBuildException("You need to specify the bundle identifier.", this); } var theBundleVersion = bundleVersion.EvaluateIn(context); if (string.IsNullOrEmpty(theBundleVersion)) { throw new UTFailBuildException("You need to specify the bundle version.", this); } var theKeyStore = keyStore.EvaluateIn(context); if (!string.IsNullOrEmpty(theKeyStore) && !File.Exists(theKeyStore)) { throw new UTFailBuildException("The specified keystore does not exist.", this); } PlayerSettings.defaultInterfaceOrientation = defaultOrientation.EvaluateIn(context); PlayerSettings.statusBarHidden = statusBarHidden.EvaluateIn(context); PlayerSettings.use32BitDisplayBuffer = use32BitDisplayBuffer.EvaluateIn(context); PlayerSettings.Android.use24BitDepthBuffer = use24BitDepthBuffer.EvaluateIn(context); PlayerSettings.Android.showActivityIndicatorOnLoading = showActivityIndicatorOnLoading.EvaluateIn(context); UTPlayerSettingsExt extPlayerSettings = new UTPlayerSettingsExt(); extPlayerSettings.MobileSplashScreen = mobileSplashScreen.EvaluateIn(context); extPlayerSettings.Apply(); PlayerSettings.Android.splashScreenScale = splashScaling.EvaluateIn(context); PlayerSettings.bundleIdentifier = theBundleIdentifier; PlayerSettings.bundleVersion = theBundleVersion; PlayerSettings.Android.bundleVersionCode = bundleVersionCode.EvaluateIn(context); PlayerSettings.Android.minSdkVersion = minimumApiLevel.EvaluateIn(context); PlayerSettings.Android.targetDevice = targetDevice.EvaluateIn(context); #if UNITY_3_5 PlayerSettings.Android.targetGraphics = targetGraphics.EvaluateIn(context); #endif #if !UNITY_3_5 PlayerSettings.targetGlesGraphics = targetGlesGraphics.EvaluateIn(context); #endif PlayerSettings.Android.preferredInstallLocation = installLocation.EvaluateIn(context); PlayerSettings.Android.forceInternetPermission = forceInternetPermission.EvaluateIn(context); PlayerSettings.Android.forceSDCardPermission = forceSDCardPermission.EvaluateIn(context); PlayerSettings.apiCompatibilityLevel = apiCompatibilityLevel.EvaluateIn(context); PlayerSettings.stripUnusedMeshComponents = optimizeMeshData.EvaluateIn(context); #if UNITY_3_5 PlayerSettings.debugUnloadMode = debugUnloadMode.EvaluateIn(context); #endif PlayerSettings.Android.keystoreName = theKeyStore; PlayerSettings.Android.keystorePass = keyStorePassword.EvaluateIn(context); PlayerSettings.Android.keyaliasName = keyAlias.EvaluateIn(context); PlayerSettings.Android.keyaliasPass = keyPassword.EvaluateIn(context); if (UTPreferences.DebugMode) { Debug.Log("Android player settings modified.", this); } yield return(""); }