public static void PopulateWebSettings(UnityBuildSettings settings)
        {
            // web player settings
            // ---------------------------------------------------------------

#if UNITY_5_5_AND_LESSER
            settings.WebPlayerDefaultScreenWidth  = PlayerSettings.defaultWebScreenWidth;
            settings.WebPlayerDefaultScreenHeight = PlayerSettings.defaultWebScreenHeight;

            settings.WebPlayerEnableStreaming = EditorUserBuildSettings.webPlayerStreamed;
            settings.WebPlayerDeployOffline   = EditorUserBuildSettings.webPlayerOfflineDeployment;
#else
            settings.WebPlayerDefaultScreenWidth  = 0;
            settings.WebPlayerDefaultScreenHeight = 0;

            settings.WebPlayerEnableStreaming = false;
            settings.WebPlayerDeployOffline   = false;
#endif

#if UNITY_5_2_AND_LESSER
            settings.WebPlayerFirstStreamedLevelWithResources = PlayerSettings.firstStreamedLevelWithResources;
#else
            settings.WebPlayerFirstStreamedLevelWithResources = 0;
#endif

#if UNITY_5_3_AND_LESSER
            settings.WebGLOptimizationLevel = EditorUserBuildSettings.webGLOptimizationLevel.ToString();
#endif
        }
        public static void PopulateStandaloneSettings(UnityBuildSettings settings)
        {
            // standalone (windows/mac/linux) build settings
            // ---------------------------------------------------------------
            settings.StandaloneResolutionDialogSettingUsed = PlayerSettings.displayResolutionDialog.ToString();

            settings.StandaloneDefaultScreenWidth  = PlayerSettings.defaultScreenWidth;
            settings.StandaloneDefaultScreenHeight = PlayerSettings.defaultScreenHeight;

            settings.StandaloneFullScreenByDefault = PlayerSettings.defaultIsFullScreen;

            settings.StandaloneCaptureSingleScreen = PlayerSettings.captureSingleScreen;

            settings.StandaloneForceSingleInstance   = PlayerSettings.forceSingleInstance;
            settings.StandaloneEnableResizableWindow = PlayerSettings.resizableWindow;



            // windows only build settings
            // ---------------------------------------------------------------
#if (UNITY_5 || UNITY_5_1 || UNITY_5_1_0)
#else
            settings.WinUseDirect3D11IfAvailable = PlayerSettings.useDirect3D11;
#endif


            // mac only build settings
            // ---------------------------------------------------------------
            settings.MacUseAppStoreValidation = PlayerSettings.useMacAppStoreValidation;
            settings.MacFullscreenModeUsed    = PlayerSettings.macFullscreenMode.ToString();
        }
        // ================================================================================================

        public static void Populate(UnityBuildSettings settings)
        {
            PopulateGeneralSettings(settings);
            PopulateWebSettings(settings);
            PopulateStandaloneSettings(settings);
            PopulateMobileSettings(settings);
            PopulateBigConsoleGen07Settings(settings);
        }
        public static void PopulateStandaloneSettings(UnityBuildSettings settings)
        {
            // standalone (windows/mac/linux) build settings
            // ---------------------------------------------------------------
            settings.StandaloneResolutionDialogSettingUsed = PlayerSettings.displayResolutionDialog.ToString();

            settings.StandaloneDefaultScreenWidth  = PlayerSettings.defaultScreenWidth;
            settings.StandaloneDefaultScreenHeight = PlayerSettings.defaultScreenHeight;

            settings.StandaloneFullScreenByDefault = PlayerSettings.defaultIsFullScreen;
#if !UNITY_5_2_AND_LESSER
            settings.StandaloneAllowFullScreenSwitch = PlayerSettings.allowFullscreenSwitch;
#endif

            settings.StandaloneCaptureSingleScreen = PlayerSettings.captureSingleScreen;

            settings.StandaloneForceSingleInstance   = PlayerSettings.forceSingleInstance;
            settings.StandaloneEnableResizableWindow = PlayerSettings.resizableWindow;



            // windows only build settings
            // ---------------------------------------------------------------
#if UNITY_5_1_AND_LESSER
            settings.WinUseDirect3D11IfAvailable = PlayerSettings.useDirect3D11;
#endif

#if !UNITY_2017_3_OR_NEWER
            settings.WinDirect3D9FullscreenModeUsed = PlayerSettings.d3d9FullscreenMode.ToString();
#endif

#if !UNITY_4
            settings.WinDirect3D11FullscreenModeUsed = PlayerSettings.d3d11FullscreenMode.ToString();
#endif

#if UNITY_5_3_AND_LESSER
            settings.StandaloneUseStereoscopic3d = PlayerSettings.stereoscopic3D;
#endif



            // Windows Store App only build settings
            // ---------------------------------------------------------------
#if !UNITY_4
            settings.WSAGenerateReferenceProjects = EditorUserBuildSettings.wsaGenerateReferenceProjects;
#endif
#if UNITY_5_2_AND_GREATER
            settings.WSASDK = EditorUserBuildSettings.wsaSDK.ToString();
#endif



            // mac only build settings
            // ---------------------------------------------------------------
            settings.MacUseAppStoreValidation = PlayerSettings.useMacAppStoreValidation;
            settings.MacFullscreenModeUsed    = PlayerSettings.macFullscreenMode.ToString();
        }
Пример #5
0
 public static void PopulateTvDeviceSettings(UnityBuildSettings settings)
 {
     settings.SamsungTVDeviceAddress    = PlayerSettings.SamsungTV.deviceAddress;
     settings.SamsungTVAuthor           = PlayerSettings.SamsungTV.productAuthor;
     settings.SamsungTVAuthorEmail      = PlayerSettings.SamsungTV.productAuthorEmail;
     settings.SamsungTVAuthorWebsiteUrl = PlayerSettings.SamsungTV.productLink;
     settings.SamsungTVCategory         = PlayerSettings.SamsungTV.productCategory.ToString();
     settings.SamsungTVDescription      = PlayerSettings.SamsungTV.productDescription;
 }
Пример #6
0
        public static void PopulateTvDeviceSettings(UnityBuildSettings settings)
        {
            // no more Samsung TV in Unity 2017.3 or greater

#if UNITY_4 || UNITY_5 || (UNITY_2017 && !UNITY_2017_3_OR_NEWER)
            settings.SamsungTVDeviceAddress = PlayerSettings.SamsungTV.deviceAddress;
#if !UNITY_4
            settings.SamsungTVAuthor           = PlayerSettings.SamsungTV.productAuthor;
            settings.SamsungTVAuthorEmail      = PlayerSettings.SamsungTV.productAuthorEmail;
            settings.SamsungTVAuthorWebsiteUrl = PlayerSettings.SamsungTV.productLink;
            settings.SamsungTVCategory         = PlayerSettings.SamsungTV.productCategory.ToString();
            settings.SamsungTVDescription      = PlayerSettings.SamsungTV.productDescription;
#endif
#endif
        }
Пример #7
0
        public static void PopulateWebSettings(UnityBuildSettings settings)
        {
            // web player settings
            // ---------------------------------------------------------------

#if UNITY_5_5_AND_LESSER
            settings.WebPlayerDefaultScreenWidth  = PlayerSettings.defaultWebScreenWidth;
            settings.WebPlayerDefaultScreenHeight = PlayerSettings.defaultWebScreenHeight;

            settings.WebPlayerEnableStreaming = EditorUserBuildSettings.webPlayerStreamed;
            settings.WebPlayerDeployOffline   = EditorUserBuildSettings.webPlayerOfflineDeployment;
#else
            settings.WebPlayerDefaultScreenWidth  = 0;
            settings.WebPlayerDefaultScreenHeight = 0;

            settings.WebPlayerEnableStreaming = false;
            settings.WebPlayerDeployOffline   = false;
#endif

#if UNITY_5_2_AND_LESSER
            settings.WebPlayerFirstStreamedLevelWithResources = PlayerSettings.firstStreamedLevelWithResources;
#else
            settings.WebPlayerFirstStreamedLevelWithResources = 0;
#endif

            // Web GL settings
            // ---------------------------------------------------------------

#if UNITY_5_3_AND_LESSER
            settings.WebGLOptimizationLevel = EditorUserBuildSettings.webGLOptimizationLevel.ToString();
#endif
#if UNITY_5_4_OR_NEWER
            // settings.WebGLUsePreBuiltUnityEngine = EditorUserBuildSettings.webGLUsePreBuiltUnityEngine;
#endif
#if UNITY_5_5_OR_NEWER
            settings.WebGLCompressionFormat      = PlayerSettings.WebGL.compressionFormat.ToString();
            settings.WebGLAutoCacheAssetsData    = PlayerSettings.WebGL.dataCaching;
            settings.WebGLCreateDebugSymbolsFile = PlayerSettings.WebGL.debugSymbols;
            settings.WebGLExceptionSupportType   = PlayerSettings.WebGL.exceptionSupport.ToString();
            settings.WebGLMemorySize             = PlayerSettings.WebGL.memorySize;
            settings.WebGLTemplatePath           = PlayerSettings.WebGL.template;
#endif
        }
Пример #8
0
        public static void PopulateWebSettings(UnityBuildSettings settings)
        {
            // web player settings
            // ---------------------------------------------------------------
            settings.WebPlayerDefaultScreenWidth  = PlayerSettings.defaultWebScreenWidth;
            settings.WebPlayerDefaultScreenHeight = PlayerSettings.defaultWebScreenHeight;

            settings.WebPlayerEnableStreaming = EditorUserBuildSettings.webPlayerStreamed;
            settings.WebPlayerDeployOffline   = EditorUserBuildSettings.webPlayerOfflineDeployment;

//			settings.WebPlayerFirstStreamedLevelWithResources = PlayerSettings.firstStreamedLevelWithResources;


            settings.WebGLOptimizationLevel = EditorUserBuildSettings.webGLOptimizationLevel.ToString();

#if !UNITY_5
            // flash player settings
            // ---------------------------------------------------------------
            settings.FlashBuildSubtarget = EditorUserBuildSettings.flashBuildSubtarget.ToString();
#endif
        }
Пример #9
0
        public static void PopulateStandaloneSettings(UnityBuildSettings settings)
        {
            // standalone (windows/mac/linux) build settings
            // ---------------------------------------------------------------
            settings.StandaloneResolutionDialogSettingUsed = PlayerSettings.displayResolutionDialog.ToString();

            settings.StandaloneDefaultScreenWidth  = PlayerSettings.defaultScreenWidth;
            settings.StandaloneDefaultScreenHeight = PlayerSettings.defaultScreenHeight;

            settings.StandaloneFullScreenByDefault = PlayerSettings.defaultIsFullScreen;

            settings.StandaloneCaptureSingleScreen = PlayerSettings.captureSingleScreen;

            settings.StandaloneForceSingleInstance   = PlayerSettings.forceSingleInstance;
            settings.StandaloneEnableResizableWindow = PlayerSettings.resizableWindow;



            // windows only build settings
            // ---------------------------------------------------------------
            settings.WinUseDirect3D11IfAvailable     = PlayerSettings.useDirect3D11;
            settings.WinDirect3D9FullscreenModeUsed  = PlayerSettings.d3d9FullscreenMode.ToString();
            settings.WinDirect3D11FullscreenModeUsed = PlayerSettings.d3d11FullscreenMode.ToString();

            settings.StandaloneUseStereoscopic3d = PlayerSettings.stereoscopic3D;



            // Windows Store App only build settings
            // ---------------------------------------------------------------
            settings.WSAGenerateReferenceProjects = EditorUserBuildSettings.wsaGenerateReferenceProjects;



            // mac only build settings
            // ---------------------------------------------------------------
            settings.MacUseAppStoreValidation = PlayerSettings.useMacAppStoreValidation;
            settings.MacFullscreenModeUsed    = PlayerSettings.macFullscreenMode.ToString();
        }
	// ================================================================================================

	public static void Populate(UnityBuildSettings settings)
	{
		PopulateGeneralSettings(settings);
		PopulateWebSettings(settings);
		PopulateStandaloneSettings(settings);
		PopulateMobileSettings(settings);
		PopulateTvDeviceSettings(settings);
		PopulateBigConsoleGen07Settings(settings);
		PopulateBigConsoleGen08Settings(settings);
	}
Пример #11
0
        public static void PopulateTvDeviceSettings(UnityBuildSettings settings)
        {
#if !UNITY_4
#endif
        }
Пример #12
0
        public static void PopulateGeneralSettings(UnityBuildSettings settings)
        {
            settings.CompanyName = PlayerSettings.companyName;
            settings.ProductName = PlayerSettings.productName;

            settings.UsingAdvancedLicense = PlayerSettings.advancedLicense;



            // debug settings
            // ---------------------------------------------------------------
            settings.EnableDevelopmentBuild   = EditorUserBuildSettings.development;
            settings.EnableDebugLog           = PlayerSettings.usePlayerLog;
            settings.EnableSourceDebugging    = EditorUserBuildSettings.allowDebugging;
            settings.EnableExplicitNullChecks = EditorUserBuildSettings.explicitNullChecks;

#if UNITY_5_5_OR_NEWER
            settings.EnableCrashReportApi             = PlayerSettings.enableCrashReportAPI;
            settings.EnableInternalProfiler           = PlayerSettings.enableInternalProfiler;
            settings.ActionOnDotNetUnhandledException = PlayerSettings.actionOnDotNetUnhandledException.ToString();
#endif

            settings.ConnectProfiler = EditorUserBuildSettings.connectProfiler;

#if UNITY_5_5_OR_NEWER
            // this setting actually started appearing in Unity 5.2.2 (it is not present in 5.2.1)
            // but our script compilation defines can't detect the patch number in the version,
            // so we have no choice but to restrict this to 5.3
            settings.ForceOptimizeScriptCompilation = EditorUserBuildSettings.forceOptimizeScriptCompilation;
#endif


            // build settings
            // ---------------------------------------------------------------

            settings.EnableHeadlessMode   = EditorUserBuildSettings.enableHeadlessMode;
            settings.InstallInBuildFolder = EditorUserBuildSettings.installInBuildFolder;
#if UNITY_5_5_OR_NEWER
            settings.ForceInstallation   = EditorUserBuildSettings.forceInstallation;
            settings.BuildScriptsOnly    = EditorUserBuildSettings.buildScriptsOnly;
            settings.BakeCollisionMeshes = PlayerSettings.bakeCollisionMeshes;
#endif

#if !UNITY_5_5_OR_NEWER
            settings.StripPhysicsCode = PlayerSettings.stripPhysics;
#endif
            settings.StripUnusedMeshComponents = PlayerSettings.stripUnusedMeshComponents;

#if UNITY_5_5_OR_NEWER
            settings.StripEngineCode = PlayerSettings.stripEngineCode;
#endif



            // code settings
            // ---------------------------------------------------------------

            Dictionary <string, DldUtil.GetRspDefines.Entry> customDefines = DldUtil.GetRspDefines.GetDefines();

            List <string> defines = new List <string>();
            defines.AddRange(EditorUserBuildSettings.activeScriptCompilationDefines);


            foreach (KeyValuePair <string, DldUtil.GetRspDefines.Entry> customDefine in customDefines)
            {
                if (customDefine.Value.TimesDefinedInBuiltIn == 0)
                {
                    defines.Add(customDefine.Key);
                }
            }

            settings.CompileDefines = defines.ToArray();



            settings.StrippingLevelUsed = PlayerSettings.strippingLevel.ToString();

            settings.NETApiCompatibilityLevel = PlayerSettings.apiCompatibilityLevel.ToString();

            settings.AOTOptions = PlayerSettings.aotOptions;
            settings.LocationUsageDescription = PlayerSettings.iOS.locationUsageDescription;



            // rendering settings
            // ---------------------------------------------------------------
            settings.ColorSpaceUsed            = PlayerSettings.colorSpace.ToString();
            settings.UseMultithreadedRendering = PlayerSettings.MTRendering;
            settings.UseGPUSkinning            = PlayerSettings.gpuSkinning;
            settings.RenderingPathUsed         = PlayerSettings.renderingPath.ToString();
            settings.VisibleInBackground       = PlayerSettings.visibleInBackground;

#if UNITY_5_5_OR_NEWER
            settings.EnableVirtualRealitySupport = PlayerSettings.virtualRealitySupported;
#endif

            // collect all aspect ratios
            UnityEditor.AspectRatio[] aspectRatios =
            {
                UnityEditor.AspectRatio.Aspect4by3,
                UnityEditor.AspectRatio.Aspect5by4,
                UnityEditor.AspectRatio.Aspect16by9,
                UnityEditor.AspectRatio.Aspect16by10,
                UnityEditor.AspectRatio.AspectOthers
            };
            List <string> aspectRatiosList = new List <string>();
            for (int n = 0, len = aspectRatios.Length; n < len; ++n)
            {
                if (PlayerSettings.HasAspectRatio(aspectRatios[n]))
                {
                    aspectRatiosList.Add(aspectRatios[n].ToString());
                }
            }

            if (aspectRatiosList.Count == 0)
            {
                aspectRatiosList.Add("none");
            }
            settings.AspectRatiosAllowed = aspectRatiosList.ToArray();

#if UNITY_5_5_OR_NEWER
            settings.GraphicsAPIsUsed = PlayerSettings.GetGraphicsAPIs(EditorUserBuildSettings.activeBuildTarget).Select(type => type.ToString()).ToArray();
#endif



            // shared settings
            // ---------------------------------------------------------------

            // shared between web and standalone
            settings.RunInBackground = PlayerSettings.runInBackground;
        }
Пример #13
0
        public static void PopulateGeneralSettings(UnityBuildSettings settings)
        {
            settings.CompanyName = PlayerSettings.companyName;
            settings.ProductName = PlayerSettings.productName;

            settings.UsingAdvancedLicense = PlayerSettings.advancedLicense;



            // debug settings
            // ---------------------------------------------------------------
            settings.EnableDevelopmentBuild           = EditorUserBuildSettings.development;
            settings.EnableDebugLog                   = PlayerSettings.usePlayerLog;
            settings.EnableSourceDebugging            = EditorUserBuildSettings.allowDebugging;
            settings.EnableExplicitNullChecks         = EditorUserBuildSettings.explicitNullChecks;
            settings.EnableCrashReportApi             = PlayerSettings.enableCrashReportAPI;
            settings.EnableInternalProfiler           = PlayerSettings.enableInternalProfiler;
            settings.ConnectProfiler                  = EditorUserBuildSettings.connectProfiler;
            settings.ActionOnDotNetUnhandledException = PlayerSettings.actionOnDotNetUnhandledException.ToString();



            // build settings
            // ---------------------------------------------------------------

            settings.EnableHeadlessMode   = EditorUserBuildSettings.enableHeadlessMode;
            settings.InstallInBuildFolder = EditorUserBuildSettings.installInBuildFolder;
            settings.ForceInstallation    = EditorUserBuildSettings.forceInstallation;
            settings.BuildScriptsOnly     = EditorUserBuildSettings.buildScriptsOnly;
#if !UNITY_5
            settings.StripPhysicsCode = PlayerSettings.stripPhysics;
#endif
            settings.BakeCollisionMeshes       = PlayerSettings.bakeCollisionMeshes;
            settings.StripUnusedMeshComponents = PlayerSettings.stripUnusedMeshComponents;



            // code settings
            // ---------------------------------------------------------------

            Dictionary <string, DldUtil.GetRspDefines.Entry> customDefines = DldUtil.GetRspDefines.GetDefines();

            List <string> defines = new List <string>();
            defines.AddRange(EditorUserBuildSettings.activeScriptCompilationDefines);


            foreach (KeyValuePair <string, DldUtil.GetRspDefines.Entry> customDefine in customDefines)
            {
                if (customDefine.Value.TimesDefinedInBuiltIn == 0)
                {
                    defines.Add(customDefine.Key);
                }
            }

            settings.CompileDefines = defines.ToArray();



            settings.StrippingLevelUsed       = PlayerSettings.strippingLevel.ToString();
            settings.NETApiCompatibilityLevel = PlayerSettings.apiCompatibilityLevel.ToString();
            settings.AOTOptions = PlayerSettings.aotOptions;
            settings.LocationUsageDescription = PlayerSettings.locationUsageDescription;



            // rendering settings
            // ---------------------------------------------------------------
            settings.ColorSpaceUsed            = PlayerSettings.colorSpace.ToString();
            settings.UseMultithreadedRendering = PlayerSettings.MTRendering;
            settings.UseGPUSkinning            = PlayerSettings.gpuSkinning;
            settings.RenderingPathUsed         = PlayerSettings.renderingPath.ToString();
            settings.VisibleInBackground       = PlayerSettings.visibleInBackground;


            // collect all aspect ratios
            var           aspectRatios     = (AspectRatio[])System.Enum.GetValues(typeof(AspectRatio));
            List <string> aspectRatiosList = new List <string>();
            for (int n = 0, len = aspectRatios.Length; n < len; ++n)
            {
                if (PlayerSettings.HasAspectRatio(aspectRatios[n]))
                {
                    aspectRatiosList.Add(aspectRatios[n].ToString());
                }
            }
            settings.AspectRatiosAllowed = aspectRatiosList.ToArray();



            // shared settings
            // ---------------------------------------------------------------

            // shared between web and standalone
            settings.RunInBackground = PlayerSettings.runInBackground;
        }
	public static void PopulateWebSettings(UnityBuildSettings settings)
	{
		// web player settings
		// ---------------------------------------------------------------
		settings.WebPlayerDefaultScreenWidth = PlayerSettings.defaultWebScreenWidth;
		settings.WebPlayerDefaultScreenHeight = PlayerSettings.defaultWebScreenHeight;

		settings.WebPlayerEnableStreaming = EditorUserBuildSettings.webPlayerStreamed;
		settings.WebPlayerDeployOffline = EditorUserBuildSettings.webPlayerOfflineDeployment;

		settings.WebPlayerFirstStreamedLevelWithResources = PlayerSettings.firstStreamedLevelWithResources;


		settings.WebGLOptimizationLevel = EditorUserBuildSettings.webGLOptimizationLevel.ToString();

#if !UNITY_5
		// flash player settings
		// ---------------------------------------------------------------
		settings.FlashBuildSubtarget = EditorUserBuildSettings.flashBuildSubtarget.ToString();
#endif
	}
	public static void PopulateGeneralSettings(UnityBuildSettings settings)
	{
		settings.CompanyName = PlayerSettings.companyName;
		settings.ProductName = PlayerSettings.productName;

		settings.UsingAdvancedLicense = PlayerSettings.advancedLicense;




		// debug settings
		// ---------------------------------------------------------------
		settings.EnableDevelopmentBuild = EditorUserBuildSettings.development;
		settings.EnableDebugLog = PlayerSettings.usePlayerLog;
		settings.EnableSourceDebugging = EditorUserBuildSettings.allowDebugging;
		settings.EnableExplicitNullChecks = EditorUserBuildSettings.explicitNullChecks;
		settings.EnableCrashReportApi = PlayerSettings.enableCrashReportAPI;
		settings.EnableInternalProfiler = PlayerSettings.enableInternalProfiler;
		settings.ConnectProfiler = EditorUserBuildSettings.connectProfiler;
		settings.ActionOnDotNetUnhandledException = PlayerSettings.actionOnDotNetUnhandledException.ToString();



		// build settings
		// ---------------------------------------------------------------
		
		settings.EnableHeadlessMode = EditorUserBuildSettings.enableHeadlessMode;
		settings.InstallInBuildFolder = EditorUserBuildSettings.installInBuildFolder;
		settings.ForceInstallation = EditorUserBuildSettings.forceInstallation;
		settings.BuildScriptsOnly = EditorUserBuildSettings.buildScriptsOnly;
#if !UNITY_5
		settings.StripPhysicsCode = PlayerSettings.stripPhysics;
#endif
		settings.BakeCollisionMeshes = PlayerSettings.bakeCollisionMeshes;
		settings.StripUnusedMeshComponents = PlayerSettings.stripUnusedMeshComponents;



		// code settings
		// ---------------------------------------------------------------

		Dictionary<string, DldUtil.GetRspDefines.Entry> customDefines = DldUtil.GetRspDefines.GetDefines();

		List<string> defines = new List<string>();
		defines.AddRange(EditorUserBuildSettings.activeScriptCompilationDefines);
		

		foreach(KeyValuePair<string, DldUtil.GetRspDefines.Entry> customDefine in customDefines)
		{
			if (customDefine.Value.TimesDefinedInBuiltIn == 0)
			{
				defines.Add(customDefine.Key);
			}
		}

		settings.CompileDefines = defines.ToArray();




		settings.StrippingLevelUsed = PlayerSettings.strippingLevel.ToString();

		settings.NETApiCompatibilityLevel = PlayerSettings.apiCompatibilityLevel.ToString();

		settings.AOTOptions = PlayerSettings.aotOptions;
		settings.LocationUsageDescription = PlayerSettings.locationUsageDescription;




		// rendering settings
		// ---------------------------------------------------------------
		settings.ColorSpaceUsed = PlayerSettings.colorSpace.ToString();
		settings.UseMultithreadedRendering = PlayerSettings.MTRendering;
		settings.UseGPUSkinning = PlayerSettings.gpuSkinning;
		settings.RenderingPathUsed = PlayerSettings.renderingPath.ToString();
		settings.VisibleInBackground = PlayerSettings.visibleInBackground;


		// collect all aspect ratios
		UnityEditor.AspectRatio[] aspectRatios = {
			UnityEditor.AspectRatio.Aspect4by3,
			UnityEditor.AspectRatio.Aspect5by4,
			UnityEditor.AspectRatio.Aspect16by9,
			UnityEditor.AspectRatio.Aspect16by10,
			UnityEditor.AspectRatio.AspectOthers
		};
		List<string> aspectRatiosList = new List<string>();
		for (int n = 0, len = aspectRatios.Length; n < len; ++n )
		{
			if (PlayerSettings.HasAspectRatio(aspectRatios[n]))
			{
				aspectRatiosList.Add(aspectRatios[n].ToString());
			}
		}

		if (aspectRatiosList.Count == 0)
		{
			aspectRatiosList.Add("none");
		}
		settings.AspectRatiosAllowed = aspectRatiosList.ToArray();



		// shared settings
		// ---------------------------------------------------------------

		// shared between web and standalone
		settings.RunInBackground = PlayerSettings.runInBackground;
	}
        public static void PopulateBigConsoleGen07Settings(UnityBuildSettings settings)
        {
            // XBox 360 build settings
            // ---------------------------------------------------------------

#if UNITY_5_5_OR_NEWER
            // In Unity 5.5, API for Xbox 360 is still there but build options
            // do not allow Xbox 360 anymore, so we don't bother with it
#else
            settings.Xbox360BuildSubtarget = EditorUserBuildSettings.xboxBuildSubtarget.ToString();
            settings.Xbox360RunMethod      = EditorUserBuildSettings.xboxRunMethod.ToString();

            settings.Xbox360TitleId          = PlayerSettings.xboxTitleId;
            settings.Xbox360ImageXexFilePath = PlayerSettings.xboxImageXexFilePath;
            settings.Xbox360SpaFilePath      = PlayerSettings.xboxSpaFilePath;

            settings.Xbox360AutoGenerateSpa          = PlayerSettings.xboxGenerateSpa;
            settings.Xbox360EnableKinect             = PlayerSettings.xboxEnableKinect;
            settings.Xbox360EnableKinectAutoTracking = PlayerSettings.xboxEnableKinectAutoTracking;
            settings.Xbox360EnableSpeech             = PlayerSettings.xboxEnableSpeech;
            settings.Xbox360EnableAvatar             = PlayerSettings.xboxEnableAvatar;

            settings.Xbox360SpeechDB = PlayerSettings.xboxSpeechDB;

            settings.Xbox360AdditionalTitleMemSize = PlayerSettings.xboxAdditionalTitleMemorySize;

            settings.Xbox360DeployKinectResources       = PlayerSettings.xboxDeployKinectResources;
            settings.Xbox360DeployKinectHeadOrientation = PlayerSettings.xboxDeployKinectHeadOrientation;
            settings.Xbox360DeployKinectHeadPosition    = PlayerSettings.xboxDeployKinectHeadPosition;
#endif


            // Playstation devices build settings
            // ---------------------------------------------------------------

#if UNITY_5_5_OR_NEWER
            // In Unity 5.5, EditorUserBuildSettings.sceBuildSubtarget is removed
#else
            settings.SCEBuildSubtarget = EditorUserBuildSettings.sceBuildSubtarget.ToString();
#endif

#if !UNITY_4
            settings.CompressBuildWithPsArc  = EditorUserBuildSettings.compressWithPsArc;
            settings.NeedSubmissionMaterials = EditorUserBuildSettings.needSubmissionMaterials;
#endif

            // PS3 build settings
            // ---------------------------------------------------------------

            // paths
#if UNITY_5_5_OR_NEWER
            // no more PS3 support in Unity 5.5 and greater
#elif !UNITY_5
            settings.PS3TitleConfigFilePath     = PlayerSettings.ps3TitleConfigPath;
            settings.PS3DLCConfigFilePath       = PlayerSettings.ps3DLCConfigPath;
            settings.PS3ThumbnailFilePath       = PlayerSettings.ps3ThumbnailPath;
            settings.PS3BackgroundImageFilePath = PlayerSettings.ps3BackgroundPath;
            settings.PS3BackgroundSoundFilePath = PlayerSettings.ps3SoundPath;
            settings.PS3TrophyPackagePath       = PlayerSettings.ps3TrophyPackagePath;

            settings.PS3InTrialMode = PlayerSettings.ps3TrialMode;

            settings.PS3BootCheckMaxSaveGameSizeKB = PlayerSettings.ps3BootCheckMaxSaveGameSizeKB;

            settings.PS3SaveGameSlots = PlayerSettings.ps3SaveGameSlots;

            settings.PS3NpCommsId  = PlayerSettings.ps3TrophyCommId;
            settings.PS3NpCommsSig = PlayerSettings.ps3TrophyCommSig;
            settings.PS3VideoMemoryForVertexBuffers = PlayerSettings.PS3.videoMemoryForVertexBuffers;
#else
            settings.PS3TitleConfigFilePath     = PlayerSettings.PS3.titleConfigPath;
            settings.PS3DLCConfigFilePath       = PlayerSettings.PS3.dlcConfigPath;
            settings.PS3ThumbnailFilePath       = PlayerSettings.PS3.thumbnailPath;
            settings.PS3BackgroundImageFilePath = PlayerSettings.PS3.backgroundPath;
            settings.PS3BackgroundSoundFilePath = PlayerSettings.PS3.soundPath;
            settings.PS3TrophyPackagePath       = PlayerSettings.PS3.npTrophyPackagePath;

            settings.PS3InTrialMode = PlayerSettings.PS3.trialMode;

            settings.PS3NpCommsId  = PlayerSettings.PS3.npTrophyCommId;
            settings.PS3NpCommsSig = PlayerSettings.PS3.npTrophyCommSig;

            settings.PS3DisableDolbyEncoding       = PlayerSettings.PS3.DisableDolbyEncoding;
            settings.PS3EnableMoveSupport          = PlayerSettings.PS3.EnableMoveSupport;
            settings.PS3UseSPUForUmbra             = PlayerSettings.PS3.UseSPUForUmbra;
            settings.PS3EnableVerboseMemoryStats   = PlayerSettings.PS3.EnableVerboseMemoryStats;
            settings.PS3VideoMemoryForAudio        = PlayerSettings.PS3.videoMemoryForAudio;
            settings.PS3BootCheckMaxSaveGameSizeKB = PlayerSettings.PS3.bootCheckMaxSaveGameSizeKB;

            settings.PS3SaveGameSlots = PlayerSettings.PS3.saveGameSlots;
            settings.PS3NpAgeRating   = PlayerSettings.PS3.npAgeRating;
            settings.PS3VideoMemoryForVertexBuffers = PlayerSettings.PS3.videoMemoryForVertexBuffers;
#endif
        }
        public static void PopulateBigConsoleGen07Settings(UnityBuildSettings settings)
        {
            // XBox 360 build settings
            // ---------------------------------------------------------------

            settings.Xbox360BuildSubtarget = EditorUserBuildSettings.xboxBuildSubtarget.ToString();
            settings.Xbox360RunMethod      = EditorUserBuildSettings.xboxRunMethod.ToString();

            settings.Xbox360TitleId          = PlayerSettings.xboxTitleId;
            settings.Xbox360ImageXexFilePath = PlayerSettings.xboxImageXexFilePath;
            settings.Xbox360SpaFilePath      = PlayerSettings.xboxSpaFilePath;

            settings.Xbox360AutoGenerateSpa          = PlayerSettings.xboxGenerateSpa;
            settings.Xbox360DeployKinectResources    = PlayerSettings.xboxDeployKinectResources;
            settings.Xbox360EnableKinect             = PlayerSettings.xboxEnableKinect;
            settings.Xbox360EnableKinectAutoTracking = PlayerSettings.xboxEnableKinectAutoTracking;
            settings.Xbox360EnableSpeech             = PlayerSettings.xboxEnableSpeech;
            settings.Xbox360EnableAvatar             = PlayerSettings.xboxEnableAvatar;

            settings.Xbox360SpeechDB = PlayerSettings.xboxSpeechDB;

            settings.Xbox360AdditionalTitleMemSize = PlayerSettings.xboxAdditionalTitleMemorySize;

            settings.Xbox360DeployKinectHeadOrientation = PlayerSettings.xboxDeployKinectHeadOrientation;
            settings.Xbox360DeployKinectHeadPosition    = PlayerSettings.xboxDeployKinectHeadPosition;



            // Playstation devices build settings
            // ---------------------------------------------------------------

            settings.SCEBuildSubtarget = EditorUserBuildSettings.sceBuildSubtarget.ToString();

            // PS3 build settings
            // ---------------------------------------------------------------

            // paths
#if (UNITY_5 || UNITY_5_1 || UNITY_5_1_0)
#else
            settings.PS3TitleConfigFilePath     = PlayerSettings.ps3TitleConfigPath;
            settings.PS3DLCConfigFilePath       = PlayerSettings.ps3DLCConfigPath;
            settings.PS3ThumbnailFilePath       = PlayerSettings.ps3ThumbnailPath;
            settings.PS3BackgroundImageFilePath = PlayerSettings.ps3BackgroundPath;
            settings.PS3BackgroundSoundFilePath = PlayerSettings.ps3SoundPath;
            settings.PS3TrophyPackagePath       = PlayerSettings.ps3TrophyPackagePath;
            settings.PS3InTrialMode             = PlayerSettings.ps3TrialMode;
#endif

            settings.PS3VideoMemoryForVertexBuffers = PlayerSettings.PS3.videoMemoryForVertexBuffers;
#if (UNITY_5 || UNITY_5_1 || UNITY_5_1_0)
#else
            settings.PS3BootCheckMaxSaveGameSizeKB = PlayerSettings.ps3BootCheckMaxSaveGameSizeKB;

            settings.PS3SaveGameSlots = PlayerSettings.ps3SaveGameSlots;

            settings.PS3NpCommsId  = PlayerSettings.ps3TrophyCommId;
            settings.PS3NpCommsSig = PlayerSettings.ps3TrophyCommSig;



            // PS Vita build settings
            // ---------------------------------------------------------------

            settings.PSVTrophyPackagePath = PlayerSettings.psp2NPTrophyPackPath;
            settings.PSVParamSfxPath      = PlayerSettings.psp2ParamSfxPath;

            settings.PSVNpCommsId  = PlayerSettings.psp2NPCommsID;
            settings.PSVNpCommsSig = PlayerSettings.psp2NPCommsSig;
#endif
        }
Пример #18
0
        public static void PopulateMobileSettings(UnityBuildSettings settings)
        {
            // Mobile build settings
            // ---------------------------------------------------------------

            settings.MobileBundleIdentifier = PlayerSettings.bundleIdentifier; // ("Bundle Identifier" in iOS, "Package Identifier" in Android)
            settings.MobileBundleVersion    = PlayerSettings.bundleVersion;    // ("Bundle Version" in iOS, "Version Name" in Android)
            settings.MobileHideStatusBar    = PlayerSettings.statusBarHidden;

            settings.MobileAccelerometerFrequency = PlayerSettings.accelerometerFrequency;

            settings.MobileDefaultOrientationUsed            = PlayerSettings.defaultInterfaceOrientation.ToString();
            settings.MobileEnableAutorotateToPortrait        = PlayerSettings.allowedAutorotateToPortrait;
            settings.MobileEnableAutorotateToReversePortrait = PlayerSettings.allowedAutorotateToPortraitUpsideDown;
            settings.MobileEnableAutorotateToLandscapeLeft   = PlayerSettings.allowedAutorotateToLandscapeLeft;
            settings.MobileEnableAutorotateToLandscapeRight  = PlayerSettings.allowedAutorotateToLandscapeRight;
            settings.MobileEnableOSAutorotation = PlayerSettings.useAnimatedAutorotation;

            settings.Use32BitDisplayBuffer = PlayerSettings.use32BitDisplayBuffer;



            // iOS only build settings
            // ---------------------------------------------------------------

            // Unity 5: EditorUserBuildSettings.appendProject is removed
#if !UNITY_5
            settings.iOSAppendedToProject = EditorUserBuildSettings.appendProject;
#endif
            settings.iOSSymlinkLibraries = EditorUserBuildSettings.symlinkLibraries;

            settings.iOSAppDisplayName = PlayerSettings.iOS.applicationDisplayName;

            settings.iOSScriptCallOptimizationUsed = PlayerSettings.iOS.scriptCallOptimization.ToString();

            settings.iOSSDKVersionUsed  = PlayerSettings.iOS.sdkVersion.ToString();
            settings.iOSTargetOSVersion = PlayerSettings.iOS.targetOSVersion.ToString();

            settings.iOSTargetDevice = PlayerSettings.iOS.targetDevice.ToString();
//		settings.iOSTargetResolution = PlayerSettings.iOS.targetResolution.ToString();


            settings.iOSIsIconPrerendered = PlayerSettings.iOS.prerenderedIcon;

            settings.iOSRequiresPersistentWiFi = PlayerSettings.iOS.requiresPersistentWiFi.ToString();

            settings.iOSStatusBarStyle = PlayerSettings.iOS.statusBarStyle.ToString();

#if !UNITY_5
            settings.iOSExitOnSuspend = PlayerSettings.iOS.exitOnSuspend;
#else
            settings.iOSAppInBackgroundBehavior = PlayerSettings.iOS.appInBackgroundBehavior.ToString();
#endif

            settings.iOSShowProgressBarInLoadingScreen = PlayerSettings.iOS.showActivityIndicatorOnLoading.ToString();

            settings.iOSLogObjCUncaughtExceptions = PlayerSettings.logObjCUncaughtExceptions;
            settings.iOSTargetGraphics            = PlayerSettings.targetIOSGraphics.ToString();



            // Android only build settings
            // ---------------------------------------------------------------

            settings.AndroidBuildSubtarget = EditorUserBuildSettings.androidBuildSubtarget.ToString();

            settings.AndroidUseAPKExpansionFiles = PlayerSettings.Android.useAPKExpansionFiles;

            settings.AndroidAsAndroidProject = EditorUserBuildSettings.exportAsGoogleAndroidProject;

            settings.AndroidUseLicenseVerification = PlayerSettings.Android.licenseVerification;


            settings.AndroidIsGame       = PlayerSettings.Android.androidIsGame;
            settings.AndroidTvCompatible = PlayerSettings.Android.androidTVCompatibility;


#if !UNITY_5
            settings.AndroidUse24BitDepthBuffer = PlayerSettings.Android.use24BitDepthBuffer;
#else
            settings.AndroidDisableDepthAndStencilBuffers = PlayerSettings.Android.disableDepthAndStencilBuffers;
#endif

            settings.AndroidVersionCode = PlayerSettings.Android.bundleVersionCode;

            settings.AndroidMinSDKVersion = PlayerSettings.Android.minSdkVersion.ToString();
            settings.AndroidTargetDevice  = PlayerSettings.Android.targetDevice.ToString();

            settings.AndroidSplashScreenScaleMode = PlayerSettings.Android.splashScreenScale.ToString();

            settings.AndroidPreferredInstallLocation = PlayerSettings.Android.preferredInstallLocation.ToString();

            settings.AndroidForceInternetPermission = PlayerSettings.Android.forceInternetPermission;
            settings.AndroidForceSDCardPermission   = PlayerSettings.Android.forceSDCardPermission;

            settings.AndroidShowProgressBarInLoadingScreen = PlayerSettings.Android.showActivityIndicatorOnLoading.ToString();

            settings.AndroidKeyAliasName = PlayerSettings.Android.keyaliasName;
            settings.AndroidKeystoreName = PlayerSettings.Android.keystoreName;



            // BlackBerry only build settings
            // ---------------------------------------------------------------

            settings.BlackBerryBuildSubtarget = EditorUserBuildSettings.blackberryBuildSubtarget.ToString();
            settings.BlackBerryBuildType      = EditorUserBuildSettings.blackberryBuildType.ToString();

#if !UNITY_5
            settings.BlackBerryAuthorID = PlayerSettings.BlackBerry.authorId;
#endif
            settings.BlackBerryDeviceAddress = PlayerSettings.BlackBerry.deviceAddress;

            settings.BlackBerrySaveLogPath = PlayerSettings.BlackBerry.saveLogPath;
            settings.BlackBerryTokenPath   = PlayerSettings.BlackBerry.tokenPath;

            settings.BlackBerryTokenAuthor     = PlayerSettings.BlackBerry.tokenAuthor;
            settings.BlackBerryTokenExpiration = PlayerSettings.BlackBerry.tokenExpires;

            settings.BlackBerryHasCamPermissions    = PlayerSettings.BlackBerry.HasCameraPermissions();
            settings.BlackBerryHasMicPermissions    = PlayerSettings.BlackBerry.HasMicrophonePermissions();
            settings.BlackBerryHasGpsPermissions    = PlayerSettings.BlackBerry.HasGPSPermissions();
            settings.BlackBerryHasIdPermissions     = PlayerSettings.BlackBerry.HasIdentificationPermissions();
            settings.BlackBerryHasSharedPermissions = PlayerSettings.BlackBerry.HasSharedPermissions();
        }
Пример #19
0
        public static void PopulateBigConsoleGen07Settings(UnityBuildSettings settings)
        {
            // XBox 360 build settings
            // ---------------------------------------------------------------

            settings.Xbox360BuildSubtarget = EditorUserBuildSettings.xboxBuildSubtarget.ToString();
            settings.Xbox360RunMethod      = EditorUserBuildSettings.xboxRunMethod.ToString();

            settings.Xbox360TitleId          = PlayerSettings.xboxTitleId;
            settings.Xbox360ImageXexFilePath = PlayerSettings.xboxImageXexFilePath;
            settings.Xbox360SpaFilePath      = PlayerSettings.xboxSpaFilePath;

            settings.Xbox360AutoGenerateSpa          = PlayerSettings.xboxGenerateSpa;
            settings.Xbox360EnableKinect             = PlayerSettings.xboxEnableKinect;
            settings.Xbox360EnableKinectAutoTracking = PlayerSettings.xboxEnableKinectAutoTracking;
            settings.Xbox360EnableSpeech             = PlayerSettings.xboxEnableSpeech;
            settings.Xbox360EnableAvatar             = PlayerSettings.xboxEnableAvatar;

            settings.Xbox360SpeechDB = PlayerSettings.xboxSpeechDB;

            settings.Xbox360AdditionalTitleMemSize = PlayerSettings.xboxAdditionalTitleMemorySize;

            settings.Xbox360DeployKinectResources       = PlayerSettings.xboxDeployKinectResources;
            settings.Xbox360DeployKinectHeadOrientation = PlayerSettings.xboxDeployKinectHeadOrientation;
            settings.Xbox360DeployKinectHeadPosition    = PlayerSettings.xboxDeployKinectHeadPosition;



            // Playstation devices build settings
            // ---------------------------------------------------------------

            settings.SCEBuildSubtarget       = EditorUserBuildSettings.sceBuildSubtarget.ToString();
            settings.CompressBuildWithPsArc  = EditorUserBuildSettings.compressWithPsArc;
            settings.NeedSubmissionMaterials = EditorUserBuildSettings.needSubmissionMaterials;

            // PS3 build settings
            // ---------------------------------------------------------------

            // paths
#if !UNITY_5
            settings.PS3TitleConfigFilePath     = PlayerSettings.ps3TitleConfigPath;
            settings.PS3DLCConfigFilePath       = PlayerSettings.ps3DLCConfigPath;
            settings.PS3ThumbnailFilePath       = PlayerSettings.ps3ThumbnailPath;
            settings.PS3BackgroundImageFilePath = PlayerSettings.ps3BackgroundPath;
            settings.PS3BackgroundSoundFilePath = PlayerSettings.ps3SoundPath;
            settings.PS3TrophyPackagePath       = PlayerSettings.ps3TrophyPackagePath;

            settings.PS3InTrialMode = PlayerSettings.ps3TrialMode;

            settings.PS3BootCheckMaxSaveGameSizeKB = PlayerSettings.ps3BootCheckMaxSaveGameSizeKB;

            settings.PS3SaveGameSlots = PlayerSettings.ps3SaveGameSlots;

            settings.PS3NpCommsId  = PlayerSettings.ps3TrophyCommId;
            settings.PS3NpCommsSig = PlayerSettings.ps3TrophyCommSig;
#else
            settings.PS3TitleConfigFilePath     = PlayerSettings.PS3.titleConfigPath;
            settings.PS3DLCConfigFilePath       = PlayerSettings.PS3.dlcConfigPath;
            settings.PS3ThumbnailFilePath       = PlayerSettings.PS3.thumbnailPath;
            settings.PS3BackgroundImageFilePath = PlayerSettings.PS3.backgroundPath;
            settings.PS3BackgroundSoundFilePath = PlayerSettings.PS3.soundPath;
            settings.PS3TrophyPackagePath       = PlayerSettings.PS3.npTrophyPackagePath;

            settings.PS3InTrialMode = PlayerSettings.PS3.trialMode;

            settings.PS3NpCommsId  = PlayerSettings.PS3.npTrophyCommId;
            settings.PS3NpCommsSig = PlayerSettings.PS3.npTrophyCommSig;

            settings.PS3DisableDolbyEncoding       = PlayerSettings.PS3.DisableDolbyEncoding;
            settings.PS3EnableMoveSupport          = PlayerSettings.PS3.EnableMoveSupport;
            settings.PS3UseSPUForUmbra             = PlayerSettings.PS3.UseSPUForUmbra;
            settings.PS3EnableVerboseMemoryStats   = PlayerSettings.PS3.EnableVerboseMemoryStats;
            settings.PS3VideoMemoryForAudio        = PlayerSettings.PS3.videoMemoryForAudio;
            settings.PS3BootCheckMaxSaveGameSizeKB = PlayerSettings.PS3.bootCheckMaxSaveGameSizeKB;

            settings.PS3SaveGameSlots = PlayerSettings.PS3.saveGameSlots;
            settings.PS3NpAgeRating   = PlayerSettings.PS3.npAgeRating;
#endif


            settings.PS3VideoMemoryForVertexBuffers = PlayerSettings.PS3.videoMemoryForVertexBuffers;


            // PS Vita build settings
            // ---------------------------------------------------------------

#if !UNITY_5
            settings.PSVTrophyPackagePath = PlayerSettings.psp2NPTrophyPackPath;
            settings.PSVParamSfxPath      = PlayerSettings.psp2ParamSfxPath;

            settings.PSVNpCommsId  = PlayerSettings.psp2NPCommsID;
            settings.PSVNpCommsSig = PlayerSettings.psp2NPCommsSig;
#else
            settings.PSVTrophyPackagePath = PlayerSettings.PSVita.npTrophyPackPath;
            settings.PSVParamSfxPath      = PlayerSettings.PSVita.paramSfxPath;

            settings.PSVNpCommsId  = PlayerSettings.PSVita.npCommunicationsID;
            settings.PSVNpCommsSig = PlayerSettings.PSVita.npCommsSig;


            settings.PSVBuildSubtarget = EditorUserBuildSettings.psp2BuildSubtarget.ToString();

            settings.PSVShortTitle    = PlayerSettings.PSVita.shortTitle;
            settings.PSVAppVersion    = PlayerSettings.PSVita.appVersion;
            settings.PSVMasterVersion = PlayerSettings.PSVita.masterVersion;
            settings.PSVAppCategory   = PlayerSettings.PSVita.category.ToString();
            settings.PSVContentId     = PlayerSettings.PSVita.contentID;

            settings.PSVNpAgeRating   = PlayerSettings.PSVita.npAgeRating.ToString();
            settings.PSVParentalLevel = PlayerSettings.PSVita.parentalLevel.ToString();

            settings.PSVDrmType            = PlayerSettings.PSVita.drmType.ToString();
            settings.PSVUpgradable         = PlayerSettings.PSVita.upgradable;
            settings.PSVTvBootMode         = PlayerSettings.PSVita.tvBootMode.ToString();
            settings.PSVAcquireBgm         = PlayerSettings.PSVita.acquireBGM;
            settings.PSVAllowTwitterDialog = PlayerSettings.PSVita.AllowTwitterDialog;

            settings.PSVMediaCapacity     = PlayerSettings.PSVita.mediaCapacity.ToString();
            settings.PSVStorageType       = PlayerSettings.PSVita.storageType.ToString();
            settings.PSVTvDisableEmu      = PlayerSettings.PSVita.tvDisableEmu;
            settings.PSVNpSupportGbmOrGjp = PlayerSettings.PSVita.npSupportGBMorGJP;
            settings.PSVPowerMode         = PlayerSettings.PSVita.powerMode.ToString();
            settings.PSVUseLibLocation    = PlayerSettings.PSVita.useLibLocation;

            settings.PSVHealthWarning         = PlayerSettings.PSVita.healthWarning;
            settings.PSVEnterButtonAssignment = PlayerSettings.PSVita.enterButtonAssignment.ToString();

            settings.PSVInfoBarColor         = PlayerSettings.PSVita.infoBarColor;
            settings.PSVShowInfoBarOnStartup = PlayerSettings.PSVita.infoBarOnStartup;
            settings.PSVSaveDataQuota        = PlayerSettings.PSVita.saveDataQuota;

            // paths
            settings.PSVPatchChangeInfoPath   = PlayerSettings.PSVita.patchChangeInfoPath;
            settings.PSVPatchOriginalPackPath = PlayerSettings.PSVita.patchOriginalPackage;
            settings.PSVKeystoneFilePath      = PlayerSettings.PSVita.keystoneFile;
            settings.PSVLiveAreaBgImagePath   = PlayerSettings.PSVita.liveAreaBackroundPath;
            settings.PSVLiveAreaGateImagePath = PlayerSettings.PSVita.liveAreaGatePath;
            settings.PSVCustomLiveAreaPath    = PlayerSettings.PSVita.liveAreaPath;
            settings.PSVLiveAreaTrialPath     = PlayerSettings.PSVita.liveAreaTrialPath;

            settings.PSVManualPath = PlayerSettings.PSVita.manualPath;
#endif
        }
	public static void PopulateBigConsoleGen08Settings(UnityBuildSettings settings)
	{
		// Xbox One build settings
		// ---------------------------------------------------------------
		settings.XboxOneDeployMethod = EditorUserBuildSettings.xboxOneDeployMethod.ToString();
		settings.XboxOneTitleId = PlayerSettings.XboxOne.TitleId;
		settings.XboxOneContentId = PlayerSettings.XboxOne.ContentId;
		settings.XboxOneProductId = PlayerSettings.XboxOne.ProductId;
		settings.XboxOneSandboxId = PlayerSettings.XboxOne.SandboxId;
		settings.XboxOneServiceConfigId = PlayerSettings.XboxOne.SCID;
		settings.XboxOneVersion = PlayerSettings.XboxOne.Version;
		settings.XboxOneIsContentPackage = PlayerSettings.XboxOne.IsContentPackage;

		settings.XboxOneDescription = PlayerSettings.XboxOne.Description;

		settings.XboxOnePackagingEncryptionLevel = PlayerSettings.XboxOne.PackagingEncryption.ToString();

		settings.XboxOneAllowedProductIds = PlayerSettings.XboxOne.AllowedProductIds;

		settings.XboxOneDisableKinectGpuReservation = PlayerSettings.XboxOne.DisableKinectGpuReservation;
		settings.XboxOneEnableVariableGPU = PlayerSettings.XboxOne.EnableVariableGPU;
		settings.XboxOneStreamingInstallLaunchRange = EditorUserBuildSettings.streamingInstallLaunchRange;
		settings.XboxOnePersistentLocalStorageSize = PlayerSettings.XboxOne.PersistentLocalStorageSize;

		settings.XboxOneSocketNames = PlayerSettings.XboxOne.SocketNames;

		settings.XboxOneGameOsOverridePath = PlayerSettings.XboxOne.GameOsOverridePath;
		settings.XboxOneAppManifestOverridePath = PlayerSettings.XboxOne.AppManifestOverridePath;
		settings.XboxOnePackagingOverridePath = PlayerSettings.XboxOne.PackagingOverridePath;


		// PS4 build settings
		// ---------------------------------------------------------------
		settings.PS4BuildSubtarget = EditorUserBuildSettings.ps4BuildSubtarget.ToString();
	
		settings.PS4AppParameter1 = PlayerSettings.PS4.applicationParameter1;
		settings.PS4AppParameter2 = PlayerSettings.PS4.applicationParameter2;
		settings.PS4AppParameter3 = PlayerSettings.PS4.applicationParameter3;
		settings.PS4AppParameter4 = PlayerSettings.PS4.applicationParameter4;

		settings.PS4AppType = PlayerSettings.PS4.appType;
		settings.PS4AppVersion = PlayerSettings.PS4.appVersion;
		settings.PS4Category = PlayerSettings.PS4.category.ToString();
		settings.PS4ContentId = PlayerSettings.PS4.contentID;
		settings.PS4MasterVersion = PlayerSettings.PS4.masterVersion;

		settings.PS4EnterButtonAssignment = PlayerSettings.PS4.enterButtonAssignment.ToString();
		settings.PS4RemotePlayKeyAssignment = PlayerSettings.PS4.remotePlayKeyAssignment.ToString();

		settings.PS4VideoOutPixelFormat = PlayerSettings.PS4.videoOutPixelFormat.ToString();
		settings.PS4VideoOutResolution = PlayerSettings.PS4.videoOutResolution.ToString();
	
		settings.PS4MonoEnvVars = PlayerSettings.PS4.monoEnv;

		settings.PS4NpAgeRating = PlayerSettings.PS4.npAgeRating.ToString();
		settings.PS4ParentalLevel = PlayerSettings.PS4.parentalLevel.ToString();
	
		settings.PS4EnablePlayerPrefsSupport = PlayerSettings.PS4.playerPrefsSupport;
	
		settings.PS4EnableFriendPushNotifications = PlayerSettings.PS4.pnFriends;
		settings.PS4EnablePresencePushNotifications = PlayerSettings.PS4.pnPresence;
		settings.PS4EnableSessionPushNotifications = PlayerSettings.PS4.pnSessions;
		settings.PS4EnableGameCustomDataPushNotifications = PlayerSettings.PS4.pnGameCustomData;
	
		// paths
		settings.PS4BgImagePath = PlayerSettings.PS4.BackgroundImagePath;
		settings.PS4BgMusicPath = PlayerSettings.PS4.BGMPath;
		settings.PS4StartupImagePath = PlayerSettings.PS4.StartupImagePath;
		settings.PS4ParamSfxPath = PlayerSettings.PS4.paramSfxPath;
		settings.PS4NpTitleDatPath = PlayerSettings.PS4.NPtitleDatPath;
		settings.PS4NpTrophyPackagePath = PlayerSettings.PS4.npTrophyPackPath;
		settings.PS4PronunciationSigPath = PlayerSettings.PS4.PronunciationSIGPath;
		settings.PS4PronunciationXmlPath = PlayerSettings.PS4.PronunciationXMLPath;
		settings.PS4SaveDataImagePath = PlayerSettings.PS4.SaveDataImagePath;
		settings.PS4ShareFilePath = PlayerSettings.PS4.ShareFilePath;
	}
	public static void PopulateBigConsoleGen07Settings(UnityBuildSettings settings)
	{
		// XBox 360 build settings
		// ---------------------------------------------------------------

		settings.Xbox360BuildSubtarget = EditorUserBuildSettings.xboxBuildSubtarget.ToString();
		settings.Xbox360RunMethod = EditorUserBuildSettings.xboxRunMethod.ToString();

		settings.Xbox360TitleId = PlayerSettings.xboxTitleId;
		settings.Xbox360ImageXexFilePath = PlayerSettings.xboxImageXexFilePath;
		settings.Xbox360SpaFilePath = PlayerSettings.xboxSpaFilePath;

		settings.Xbox360AutoGenerateSpa = PlayerSettings.xboxGenerateSpa;
		settings.Xbox360EnableKinect = PlayerSettings.xboxEnableKinect;
		settings.Xbox360EnableKinectAutoTracking = PlayerSettings.xboxEnableKinectAutoTracking;
		settings.Xbox360EnableSpeech = PlayerSettings.xboxEnableSpeech;
		settings.Xbox360EnableAvatar = PlayerSettings.xboxEnableAvatar;

		settings.Xbox360SpeechDB = PlayerSettings.xboxSpeechDB;

		settings.Xbox360AdditionalTitleMemSize = PlayerSettings.xboxAdditionalTitleMemorySize;

		settings.Xbox360DeployKinectResources = PlayerSettings.xboxDeployKinectResources;
		settings.Xbox360DeployKinectHeadOrientation = PlayerSettings.xboxDeployKinectHeadOrientation;
		settings.Xbox360DeployKinectHeadPosition = PlayerSettings.xboxDeployKinectHeadPosition;



		// Playstation devices build settings
		// ---------------------------------------------------------------

		settings.SCEBuildSubtarget = EditorUserBuildSettings.sceBuildSubtarget.ToString();
		settings.CompressBuildWithPsArc = EditorUserBuildSettings.compressWithPsArc;
		settings.NeedSubmissionMaterials = EditorUserBuildSettings.needSubmissionMaterials;

		// PS3 build settings
		// ---------------------------------------------------------------

		// paths
#if !UNITY_5
		settings.PS3TitleConfigFilePath = PlayerSettings.ps3TitleConfigPath;
		settings.PS3DLCConfigFilePath = PlayerSettings.ps3DLCConfigPath;
		settings.PS3ThumbnailFilePath = PlayerSettings.ps3ThumbnailPath;
		settings.PS3BackgroundImageFilePath = PlayerSettings.ps3BackgroundPath;
		settings.PS3BackgroundSoundFilePath = PlayerSettings.ps3SoundPath;
		settings.PS3TrophyPackagePath = PlayerSettings.ps3TrophyPackagePath;

		settings.PS3InTrialMode = PlayerSettings.ps3TrialMode;

		settings.PS3BootCheckMaxSaveGameSizeKB = PlayerSettings.ps3BootCheckMaxSaveGameSizeKB;

		settings.PS3SaveGameSlots = PlayerSettings.ps3SaveGameSlots;

		settings.PS3NpCommsId = PlayerSettings.ps3TrophyCommId;
		settings.PS3NpCommsSig = PlayerSettings.ps3TrophyCommSig;
#else
		settings.PS3TitleConfigFilePath = PlayerSettings.PS3.titleConfigPath;
		settings.PS3DLCConfigFilePath = PlayerSettings.PS3.dlcConfigPath;
		settings.PS3ThumbnailFilePath = PlayerSettings.PS3.thumbnailPath;
		settings.PS3BackgroundImageFilePath = PlayerSettings.PS3.backgroundPath;
		settings.PS3BackgroundSoundFilePath = PlayerSettings.PS3.soundPath;
		settings.PS3TrophyPackagePath = PlayerSettings.PS3.npTrophyPackagePath;
		
		settings.PS3InTrialMode = PlayerSettings.PS3.trialMode;
		
		settings.PS3NpCommsId = PlayerSettings.PS3.npTrophyCommId;
		settings.PS3NpCommsSig = PlayerSettings.PS3.npTrophyCommSig;
		
		settings.PS3DisableDolbyEncoding = PlayerSettings.PS3.DisableDolbyEncoding;
		settings.PS3EnableMoveSupport = PlayerSettings.PS3.EnableMoveSupport;
		settings.PS3UseSPUForUmbra = PlayerSettings.PS3.UseSPUForUmbra;
		settings.PS3EnableVerboseMemoryStats = PlayerSettings.PS3.EnableVerboseMemoryStats;
		settings.PS3VideoMemoryForAudio = PlayerSettings.PS3.videoMemoryForAudio;
		settings.PS3BootCheckMaxSaveGameSizeKB = PlayerSettings.PS3.bootCheckMaxSaveGameSizeKB;
		
		settings.PS3SaveGameSlots = PlayerSettings.PS3.saveGameSlots;
		settings.PS3NpAgeRating = PlayerSettings.PS3.npAgeRating;
#endif


		settings.PS3VideoMemoryForVertexBuffers = PlayerSettings.PS3.videoMemoryForVertexBuffers;


		// PS Vita build settings
		// ---------------------------------------------------------------

#if !UNITY_5
		settings.PSVTrophyPackagePath = PlayerSettings.psp2NPTrophyPackPath;
		settings.PSVParamSfxPath = PlayerSettings.psp2ParamSfxPath;

		settings.PSVNpCommsId = PlayerSettings.psp2NPCommsID;
		settings.PSVNpCommsSig = PlayerSettings.psp2NPCommsSig;
#else
		settings.PSVTrophyPackagePath = PlayerSettings.PSVita.npTrophyPackPath;
		settings.PSVParamSfxPath = PlayerSettings.PSVita.paramSfxPath;

		settings.PSVNpCommsId = PlayerSettings.PSVita.npCommunicationsID;
		settings.PSVNpCommsSig = PlayerSettings.PSVita.npCommsSig;
		
		
		settings.PSVBuildSubtarget = EditorUserBuildSettings.psp2BuildSubtarget.ToString();
	
		settings.PSVShortTitle = PlayerSettings.PSVita.shortTitle;
		settings.PSVAppVersion = PlayerSettings.PSVita.appVersion;
		settings.PSVMasterVersion = PlayerSettings.PSVita.masterVersion;
		settings.PSVAppCategory = PlayerSettings.PSVita.category.ToString();
		settings.PSVContentId = PlayerSettings.PSVita.contentID;

		settings.PSVNpAgeRating = PlayerSettings.PSVita.npAgeRating.ToString();
		settings.PSVParentalLevel = PlayerSettings.PSVita.parentalLevel.ToString();

		settings.PSVDrmType = PlayerSettings.PSVita.drmType.ToString();
		settings.PSVUpgradable = PlayerSettings.PSVita.upgradable;
		settings.PSVTvBootMode = PlayerSettings.PSVita.tvBootMode.ToString();
		settings.PSVAcquireBgm = PlayerSettings.PSVita.acquireBGM;
		settings.PSVAllowTwitterDialog = PlayerSettings.PSVita.AllowTwitterDialog;

		settings.PSVMediaCapacity = PlayerSettings.PSVita.mediaCapacity.ToString();
		settings.PSVStorageType = PlayerSettings.PSVita.storageType.ToString();
		settings.PSVTvDisableEmu = PlayerSettings.PSVita.tvDisableEmu;
		settings.PSVNpSupportGbmOrGjp = PlayerSettings.PSVita.npSupportGBMorGJP;
		settings.PSVPowerMode = PlayerSettings.PSVita.powerMode.ToString();
		settings.PSVUseLibLocation = PlayerSettings.PSVita.useLibLocation;
	
		settings.PSVHealthWarning = PlayerSettings.PSVita.healthWarning;
		settings.PSVEnterButtonAssignment = PlayerSettings.PSVita.enterButtonAssignment.ToString();
	
		settings.PSVInfoBarColor = PlayerSettings.PSVita.infoBarColor;
		settings.PSVShowInfoBarOnStartup = PlayerSettings.PSVita.infoBarOnStartup;
		settings.PSVSaveDataQuota = PlayerSettings.PSVita.saveDataQuota;
	
		// paths
		settings.PSVPatchChangeInfoPath = PlayerSettings.PSVita.patchChangeInfoPath;
		settings.PSVPatchOriginalPackPath = PlayerSettings.PSVita.patchOriginalPackage;
		settings.PSVKeystoneFilePath = PlayerSettings.PSVita.keystoneFile;
		settings.PSVLiveAreaBgImagePath = PlayerSettings.PSVita.liveAreaBackroundPath;
		settings.PSVLiveAreaGateImagePath = PlayerSettings.PSVita.liveAreaGatePath;
		settings.PSVCustomLiveAreaPath = PlayerSettings.PSVita.liveAreaPath;
		settings.PSVLiveAreaTrialPath = PlayerSettings.PSVita.liveAreaTrialPath;

		settings.PSVManualPath = PlayerSettings.PSVita.manualPath;
#endif
	}
	public static void PopulateTvDeviceSettings(UnityBuildSettings settings)
	{
		settings.SamsungTVDeviceAddress = PlayerSettings.SamsungTV.deviceAddress;
		settings.SamsungTVAuthor = PlayerSettings.SamsungTV.productAuthor;
		settings.SamsungTVAuthorEmail = PlayerSettings.SamsungTV.productAuthorEmail;
		settings.SamsungTVAuthorWebsiteUrl = PlayerSettings.SamsungTV.productLink;
		settings.SamsungTVCategory = PlayerSettings.SamsungTV.productCategory.ToString();
		settings.SamsungTVDescription = PlayerSettings.SamsungTV.productDescription;
	}
	public static void PopulateMobileSettings(UnityBuildSettings settings)
	{
		// Mobile build settings
		// ---------------------------------------------------------------

		settings.MobileBundleIdentifier = PlayerSettings.bundleIdentifier; // ("Bundle Identifier" in iOS, "Package Identifier" in Android)
		settings.MobileBundleVersion = PlayerSettings.bundleVersion; // ("Bundle Version" in iOS, "Version Name" in Android)
		settings.MobileHideStatusBar = PlayerSettings.statusBarHidden;

		settings.MobileAccelerometerFrequency = PlayerSettings.accelerometerFrequency;

		settings.MobileDefaultOrientationUsed = PlayerSettings.defaultInterfaceOrientation.ToString();
		settings.MobileEnableAutorotateToPortrait = PlayerSettings.allowedAutorotateToPortrait;
		settings.MobileEnableAutorotateToReversePortrait = PlayerSettings.allowedAutorotateToPortraitUpsideDown;
		settings.MobileEnableAutorotateToLandscapeLeft = PlayerSettings.allowedAutorotateToLandscapeLeft;
		settings.MobileEnableAutorotateToLandscapeRight = PlayerSettings.allowedAutorotateToLandscapeRight;
		settings.MobileEnableOSAutorotation = PlayerSettings.useAnimatedAutorotation;

		settings.Use32BitDisplayBuffer = PlayerSettings.use32BitDisplayBuffer;



		// iOS only build settings
		// ---------------------------------------------------------------

		// Unity 5: EditorUserBuildSettings.appendProject is removed
#if !UNITY_5
		settings.iOSAppendedToProject = EditorUserBuildSettings.appendProject;
#endif
		settings.iOSSymlinkLibraries = EditorUserBuildSettings.symlinkLibraries;

		settings.iOSAppDisplayName = PlayerSettings.iOS.applicationDisplayName;

		settings.iOSScriptCallOptimizationUsed = PlayerSettings.iOS.scriptCallOptimization.ToString();

		settings.iOSSDKVersionUsed = PlayerSettings.iOS.sdkVersion.ToString();
		settings.iOSTargetOSVersion = PlayerSettings.iOS.targetOSVersion.ToString();

		settings.iOSTargetDevice = PlayerSettings.iOS.targetDevice.ToString();
		settings.iOSTargetResolution = PlayerSettings.iOS.targetResolution.ToString();

		settings.iOSIsIconPrerendered = PlayerSettings.iOS.prerenderedIcon;

		settings.iOSRequiresPersistentWiFi = PlayerSettings.iOS.requiresPersistentWiFi.ToString();

		settings.iOSStatusBarStyle = PlayerSettings.iOS.statusBarStyle.ToString();
		
#if !UNITY_5
		settings.iOSExitOnSuspend = PlayerSettings.iOS.exitOnSuspend;
#else
		settings.iOSAppInBackgroundBehavior = PlayerSettings.iOS.appInBackgroundBehavior.ToString();
#endif

		settings.iOSShowProgressBarInLoadingScreen = PlayerSettings.iOS.showActivityIndicatorOnLoading.ToString();

		settings.iOSLogObjCUncaughtExceptions = PlayerSettings.logObjCUncaughtExceptions;
		settings.iOSTargetGraphics = PlayerSettings.targetIOSGraphics.ToString();
		


		// Android only build settings
		// ---------------------------------------------------------------

		settings.AndroidBuildSubtarget = EditorUserBuildSettings.androidBuildSubtarget.ToString();

		settings.AndroidUseAPKExpansionFiles = PlayerSettings.Android.useAPKExpansionFiles;

		settings.AndroidAsAndroidProject = EditorUserBuildSettings.exportAsGoogleAndroidProject;

		settings.AndroidUseLicenseVerification = PlayerSettings.Android.licenseVerification;

		
		settings.AndroidIsGame = PlayerSettings.Android.androidIsGame;
		settings.AndroidTvCompatible = PlayerSettings.Android.androidTVCompatibility;
		
			
#if !UNITY_5
		settings.AndroidUse24BitDepthBuffer = PlayerSettings.Android.use24BitDepthBuffer;
#else
		settings.AndroidDisableDepthAndStencilBuffers = PlayerSettings.Android.disableDepthAndStencilBuffers;
#endif

		settings.AndroidVersionCode = PlayerSettings.Android.bundleVersionCode;

		settings.AndroidMinSDKVersion = PlayerSettings.Android.minSdkVersion.ToString();
		settings.AndroidTargetDevice = PlayerSettings.Android.targetDevice.ToString();

		settings.AndroidSplashScreenScaleMode = PlayerSettings.Android.splashScreenScale.ToString();

		settings.AndroidPreferredInstallLocation = PlayerSettings.Android.preferredInstallLocation.ToString();

		settings.AndroidForceInternetPermission = PlayerSettings.Android.forceInternetPermission;
		settings.AndroidForceSDCardPermission = PlayerSettings.Android.forceSDCardPermission;

		settings.AndroidShowProgressBarInLoadingScreen = PlayerSettings.Android.showActivityIndicatorOnLoading.ToString();

		settings.AndroidKeyAliasName = PlayerSettings.Android.keyaliasName;
		settings.AndroidKeystoreName = PlayerSettings.Android.keystoreName;
		


		// BlackBerry only build settings
		// ---------------------------------------------------------------

		settings.BlackBerryBuildSubtarget = EditorUserBuildSettings.blackberryBuildSubtarget.ToString();
		settings.BlackBerryBuildType = EditorUserBuildSettings.blackberryBuildType.ToString();

#if !UNITY_5
		settings.BlackBerryAuthorID = PlayerSettings.BlackBerry.authorId;
#endif
		settings.BlackBerryDeviceAddress = PlayerSettings.BlackBerry.deviceAddress;

		settings.BlackBerrySaveLogPath = PlayerSettings.BlackBerry.saveLogPath;
		settings.BlackBerryTokenPath = PlayerSettings.BlackBerry.tokenPath;

		settings.BlackBerryTokenAuthor = PlayerSettings.BlackBerry.tokenAuthor;
		settings.BlackBerryTokenExpiration = PlayerSettings.BlackBerry.tokenExpires;

		settings.BlackBerryHasCamPermissions = PlayerSettings.BlackBerry.HasCameraPermissions();
		settings.BlackBerryHasMicPermissions = PlayerSettings.BlackBerry.HasMicrophonePermissions();
		settings.BlackBerryHasGpsPermissions = PlayerSettings.BlackBerry.HasGPSPermissions();
		settings.BlackBerryHasIdPermissions = PlayerSettings.BlackBerry.HasIdentificationPermissions();
		settings.BlackBerryHasSharedPermissions = PlayerSettings.BlackBerry.HasSharedPermissions();
	}
	public static void PopulateStandaloneSettings(UnityBuildSettings settings)
	{
		// standalone (windows/mac/linux) build settings
		// ---------------------------------------------------------------
		settings.StandaloneResolutionDialogSettingUsed = PlayerSettings.displayResolutionDialog.ToString();

		settings.StandaloneDefaultScreenWidth = PlayerSettings.defaultScreenWidth;
		settings.StandaloneDefaultScreenHeight = PlayerSettings.defaultScreenHeight;

		settings.StandaloneFullScreenByDefault = PlayerSettings.defaultIsFullScreen;

		settings.StandaloneCaptureSingleScreen = PlayerSettings.captureSingleScreen;

		settings.StandaloneForceSingleInstance = PlayerSettings.forceSingleInstance;
		settings.StandaloneEnableResizableWindow = PlayerSettings.resizableWindow;



		// windows only build settings
		// ---------------------------------------------------------------
		settings.WinUseDirect3D11IfAvailable = PlayerSettings.useDirect3D11;
		settings.WinDirect3D9FullscreenModeUsed = PlayerSettings.d3d9FullscreenMode.ToString();
		settings.WinDirect3D11FullscreenModeUsed = PlayerSettings.d3d11FullscreenMode.ToString();

		settings.StandaloneUseStereoscopic3d = PlayerSettings.stereoscopic3D;

		

		// Windows Store App only build settings
		// ---------------------------------------------------------------
		settings.WSAGenerateReferenceProjects = EditorUserBuildSettings.wsaGenerateReferenceProjects;




		// mac only build settings
		// ---------------------------------------------------------------
		settings.MacUseAppStoreValidation = PlayerSettings.useMacAppStoreValidation;
		settings.MacFullscreenModeUsed = PlayerSettings.macFullscreenMode.ToString();
	}
        public static void PopulateGeneralSettings(UnityBuildSettings settings)
        {
            settings.CompanyName = PlayerSettings.companyName;
            settings.ProductName = PlayerSettings.productName;

            settings.UsingAdvancedLicense = PlayerSettings.advancedLicense;

            settings.InstallInBuildFolder = EditorUserBuildSettings.installInBuildFolder;



            // debug settings
            // ---------------------------------------------------------------
            settings.EnableDevelopmentBuild = EditorUserBuildSettings.development;

            settings.EnableDebugLog = PlayerSettings.usePlayerLog;

            settings.ConnectProfiler = EditorUserBuildSettings.connectProfiler;

            settings.EnableSourceDebugging = EditorUserBuildSettings.allowDebugging;


            // code settings
            // ---------------------------------------------------------------

            Dictionary <string, DldUtil.GetRspDefines.Entry> customDefines = DldUtil.GetRspDefines.GetDefines();

            List <string> defines = new List <string>();

            defines.AddRange(EditorUserBuildSettings.activeScriptCompilationDefines);


            foreach (KeyValuePair <string, DldUtil.GetRspDefines.Entry> customDefine in customDefines)
            {
                if (customDefine.Value.TimesDefinedInBuiltIn == 0)
                {
                    defines.Add(customDefine.Key);
                }
            }

            settings.CompileDefines = defines.ToArray();



            settings.StrippingLevelUsed = PlayerSettings.strippingLevel.ToString();

            settings.NETApiCompatibilityLevel = PlayerSettings.apiCompatibilityLevel.ToString();

            settings.AOTOptions = PlayerSettings.aotOptions;

            settings.EnableExplicitNullChecks = EditorUserBuildSettings.explicitNullChecks;

#if (UNITY_5 || UNITY_5_1 || UNITY_5_1_0)
#else
            settings.StripPhysicsCode = PlayerSettings.stripPhysics;
#endif


            // rendering settings
            // ---------------------------------------------------------------
            settings.ColorSpaceUsed = PlayerSettings.colorSpace.ToString();

            settings.StripUnusedMeshComponents = PlayerSettings.stripUnusedMeshComponents;
            settings.UseMultithreadedRendering = PlayerSettings.MTRendering;

            settings.UseGPUSkinning = PlayerSettings.gpuSkinning;

            settings.RenderingPathUsed = PlayerSettings.renderingPath.ToString();


            // shared settings
            // ---------------------------------------------------------------

            // shared between web and standalone
            settings.RunInBackground = PlayerSettings.runInBackground;
        }
Пример #26
0
 //LRK-20170512 又不导出Xobx,这段代码在5.5.3P1内报错
 public static void PopulateBigConsoleGen07Settings(UnityBuildSettings settings)
 {
 }
Пример #27
0
        public static void PopulateBigConsoleGen08Settings(UnityBuildSettings settings)
        {
            // Xbox One build settings
            // ---------------------------------------------------------------
            settings.XboxOneDeployMethod     = EditorUserBuildSettings.xboxOneDeployMethod.ToString();
            settings.XboxOneTitleId          = PlayerSettings.XboxOne.TitleId;
            settings.XboxOneContentId        = PlayerSettings.XboxOne.ContentId;
            settings.XboxOneProductId        = PlayerSettings.XboxOne.ProductId;
            settings.XboxOneSandboxId        = PlayerSettings.XboxOne.SandboxId;
            settings.XboxOneServiceConfigId  = PlayerSettings.XboxOne.SCID;
            settings.XboxOneVersion          = PlayerSettings.XboxOne.Version;
            settings.XboxOneIsContentPackage = PlayerSettings.XboxOne.IsContentPackage;

            settings.XboxOneDescription = PlayerSettings.XboxOne.Description;

            settings.XboxOnePackagingEncryptionLevel = PlayerSettings.XboxOne.PackagingEncryption.ToString();

            settings.XboxOneAllowedProductIds = PlayerSettings.XboxOne.AllowedProductIds;

            settings.XboxOneDisableKinectGpuReservation = PlayerSettings.XboxOne.DisableKinectGpuReservation;
            settings.XboxOneEnableVariableGPU           = PlayerSettings.XboxOne.EnableVariableGPU;
            settings.XboxOneStreamingInstallLaunchRange = EditorUserBuildSettings.streamingInstallLaunchRange;
            settings.XboxOnePersistentLocalStorageSize  = PlayerSettings.XboxOne.PersistentLocalStorageSize;

            settings.XboxOneSocketNames = PlayerSettings.XboxOne.SocketNames;

            settings.XboxOneGameOsOverridePath      = PlayerSettings.XboxOne.GameOsOverridePath;
            settings.XboxOneAppManifestOverridePath = PlayerSettings.XboxOne.AppManifestOverridePath;
            settings.XboxOnePackagingOverridePath   = PlayerSettings.XboxOne.PackagingOverridePath;


            // PS4 build settings
            // ---------------------------------------------------------------
            settings.PS4BuildSubtarget = EditorUserBuildSettings.ps4BuildSubtarget.ToString();

            settings.PS4AppParameter1 = PlayerSettings.PS4.applicationParameter1;
            settings.PS4AppParameter2 = PlayerSettings.PS4.applicationParameter2;
            settings.PS4AppParameter3 = PlayerSettings.PS4.applicationParameter3;
            settings.PS4AppParameter4 = PlayerSettings.PS4.applicationParameter4;

            settings.PS4AppType       = PlayerSettings.PS4.appType;
            settings.PS4AppVersion    = PlayerSettings.PS4.appVersion;
            settings.PS4Category      = PlayerSettings.PS4.category.ToString();
            settings.PS4ContentId     = PlayerSettings.PS4.contentID;
            settings.PS4MasterVersion = PlayerSettings.PS4.masterVersion;

            settings.PS4EnterButtonAssignment   = PlayerSettings.PS4.enterButtonAssignment.ToString();
            settings.PS4RemotePlayKeyAssignment = PlayerSettings.PS4.remotePlayKeyAssignment.ToString();

            settings.PS4VideoOutPixelFormat = PlayerSettings.PS4.videoOutPixelFormat.ToString();
            settings.PS4VideoOutResolution  = PlayerSettings.PS4.videoOutResolution.ToString();

            settings.PS4MonoEnvVars = PlayerSettings.PS4.monoEnv;

            settings.PS4NpAgeRating   = PlayerSettings.PS4.npAgeRating.ToString();
            settings.PS4ParentalLevel = PlayerSettings.PS4.parentalLevel.ToString();

            settings.PS4EnablePlayerPrefsSupport = PlayerSettings.PS4.playerPrefsSupport;

            settings.PS4EnableFriendPushNotifications         = PlayerSettings.PS4.pnFriends;
            settings.PS4EnablePresencePushNotifications       = PlayerSettings.PS4.pnPresence;
            settings.PS4EnableSessionPushNotifications        = PlayerSettings.PS4.pnSessions;
            settings.PS4EnableGameCustomDataPushNotifications = PlayerSettings.PS4.pnGameCustomData;

            // paths
            settings.PS4BgImagePath          = PlayerSettings.PS4.BackgroundImagePath;
            settings.PS4BgMusicPath          = PlayerSettings.PS4.BGMPath;
            settings.PS4StartupImagePath     = PlayerSettings.PS4.StartupImagePath;
            settings.PS4ParamSfxPath         = PlayerSettings.PS4.paramSfxPath;
            settings.PS4NpTitleDatPath       = PlayerSettings.PS4.NPtitleDatPath;
            settings.PS4NpTrophyPackagePath  = PlayerSettings.PS4.npTrophyPackPath;
            settings.PS4PronunciationSigPath = PlayerSettings.PS4.PronunciationSIGPath;
            settings.PS4PronunciationXmlPath = PlayerSettings.PS4.PronunciationXMLPath;
            settings.PS4SaveDataImagePath    = PlayerSettings.PS4.SaveDataImagePath;
            settings.PS4ShareFilePath        = PlayerSettings.PS4.ShareFilePath;
        }
 public static void PopulateTvDeviceSettings(UnityBuildSettings settings)
 {
 }