public override void OnEnable(PlayerSettingsEditor settingsEditor) { this.m_TizenProductDescription = settingsEditor.FindPropertyAssert("tizenProductDescription"); this.m_TizenProductURL = settingsEditor.FindPropertyAssert("tizenProductURL"); this.m_TizenProfileName = settingsEditor.FindPropertyAssert("tizenSigningProfileName"); this.m_TizenMinOSVersion = settingsEditor.FindPropertyAssert("tizenMinOSVersion"); this.m_IPhoneSplashScreen = settingsEditor.FindPropertyAssert("iPhoneSplashScreen"); }
public void OnEnable() { m_ValidPlatforms = BuildPlatforms.instance.GetValidPlatforms(true).ToArray(); m_PlatformIcons = m_Owner.FindPropertyAssert("m_BuildTargetPlatformIcons"); m_LegacyPlatformIcons = m_Owner.FindPropertyAssert("m_BuildTargetIcons"); m_UIPrerenderedIcon = m_Owner.FindPropertyAssert("uIPrerenderedIcon"); DeserializeIcons(); DeserializeLegacyIcons(); }
public override void OnEnable(PlayerSettingsEditor settingsEditor) { this.m_WebGLMemorySize = settingsEditor.FindPropertyAssert("webGLMemorySize"); this.m_WebGLExceptionSupport = settingsEditor.FindPropertyAssert("webGLExceptionSupport"); this.m_WebGLCompressionFormat = settingsEditor.FindPropertyAssert("webGLCompressionFormat"); this.m_WebGLDataCaching = settingsEditor.FindPropertyAssert("webGLDataCaching"); this.m_WebGLDebugSymbols = settingsEditor.FindPropertyAssert("webGLDebugSymbols"); this.m_WebGLTemplate = settingsEditor.FindPropertyAssert("webGLTemplate"); this.m_DefaultScreenWidthWeb = settingsEditor.FindPropertyAssert("defaultScreenWidthWeb"); this.m_DefaultScreenHeightWeb = settingsEditor.FindPropertyAssert("defaultScreenHeightWeb"); this.m_RunInBackground = settingsEditor.FindPropertyAssert("runInBackground"); }
public override void OnEnable(PlayerSettingsEditor settingsEditor) { this.m_WebGLMemorySize = settingsEditor.FindPropertyAssert("webGLMemorySize"); this.m_WebGLExceptionSupport = settingsEditor.FindPropertyAssert("webGLExceptionSupport"); this.m_WebGLCompressionFormat = settingsEditor.FindPropertyAssert("webGLCompressionFormat"); this.m_WebGLDataCaching = settingsEditor.FindPropertyAssert("webGLDataCaching"); this.m_WebGLDebugSymbols = settingsEditor.FindPropertyAssert("webGLDebugSymbols"); this.m_WebGLTemplate = settingsEditor.FindPropertyAssert("webGLTemplate"); this.m_DefaultScreenWidthWeb = settingsEditor.FindPropertyAssert("defaultScreenWidthWeb"); this.m_DefaultScreenHeightWeb = settingsEditor.FindPropertyAssert("defaultScreenHeightWeb"); this.m_RunInBackground = settingsEditor.FindPropertyAssert("runInBackground"); }
public override void OnEnable(PlayerSettingsEditor settingsEditor) { this.m_SamsungTVDeviceAddress = settingsEditor.FindPropertyAssert("stvDeviceAddress"); this.m_SamsungTVProductDescription = settingsEditor.FindPropertyAssert("stvProductDescription"); this.m_SamsungTVProductAuthor = settingsEditor.FindPropertyAssert("stvProductAuthor"); this.m_SamsungTVProductAuthorEmail = settingsEditor.FindPropertyAssert("stvProductAuthorEmail"); this.m_SamsungTVProductLink = settingsEditor.FindPropertyAssert("stvProductLink"); this.m_SamsungTVProductCategory = settingsEditor.FindPropertyAssert("stvProductCategory"); this.m_IPhoneSplashScreen = settingsEditor.FindPropertyAssert("iPhoneSplashScreen"); this.m_IgnoreAlphaClear = settingsEditor.FindPropertyAssert("ignoreAlphaClear"); this.m_SettingsEditor = settingsEditor; }
public override void OnEnable(PlayerSettingsEditor settingsEditor) { this.m_SamsungTVDeviceAddress = settingsEditor.FindPropertyAssert("stvDeviceAddress"); this.m_SamsungTVProductDescription = settingsEditor.FindPropertyAssert("stvProductDescription"); this.m_SamsungTVProductAuthor = settingsEditor.FindPropertyAssert("stvProductAuthor"); this.m_SamsungTVProductAuthorEmail = settingsEditor.FindPropertyAssert("stvProductAuthorEmail"); this.m_SamsungTVProductLink = settingsEditor.FindPropertyAssert("stvProductLink"); this.m_SamsungTVProductCategory = settingsEditor.FindPropertyAssert("stvProductCategory"); this.m_IPhoneSplashScreen = settingsEditor.FindPropertyAssert("iPhoneSplashScreen"); this.m_IgnoreAlphaClear = settingsEditor.FindPropertyAssert("ignoreAlphaClear"); this.m_SettingsEditor = settingsEditor; }
public PlayerSettingsEditorVR(PlayerSettingsEditor settingsEditor) { m_Settings = settingsEditor; m_StereoRenderingPath = m_Settings.serializedObject.FindProperty("m_StereoRenderingPath"); m_AndroidEnableTango = m_Settings.FindPropertyAssert("AndroidEnableTango"); SerializedProperty property = m_Settings.serializedObject.FindProperty("vrSettings"); if (property != null) m_Enable360StereoCapture = property.FindPropertyRelative("enable360StereoCapture"); }
public override void OnEnable(PlayerSettingsEditor editor) { this.splashScreenProperties = new SerializedProperty[splashScreenTypes.Length]; for (int i = 0; i < splashScreenTypes.Length; i++) { this.splashScreenProperties[i] = editor.FindPropertyAssert(splashScreenTypes[i].serializationName); } this.m_SmallIconsLayers = new ReorderableIconLayerList(); this.m_SmallIconsLayers.headerString = LocalizationDatabase.GetLocalizedString("Small icon layers"); this.m_SmallIconsLayers.minItems = 2; this.m_SmallIconsLayers.SetImageSize(400, 240); if (< > f__am$cache0 == null) {
public void OnEnable() { m_ShowUnitySplashLogo = m_Owner.FindPropertyAssert("m_ShowUnitySplashLogo"); m_ShowUnitySplashScreen = m_Owner.FindPropertyAssert("m_ShowUnitySplashScreen"); m_SplashScreenAnimation = m_Owner.FindPropertyAssert("m_SplashScreenAnimation"); m_SplashScreenBackgroundAnimationZoom = m_Owner.FindPropertyAssert("m_SplashScreenBackgroundAnimationZoom"); m_SplashScreenBackgroundColor = m_Owner.FindPropertyAssert("m_SplashScreenBackgroundColor"); m_SplashScreenBackgroundLandscape = m_Owner.FindPropertyAssert("splashScreenBackgroundSourceLandscape"); m_SplashScreenBackgroundPortrait = m_Owner.FindPropertyAssert("splashScreenBackgroundSourcePortrait"); m_SplashScreenBlurBackground = m_Owner.FindPropertyAssert("blurSplashScreenBackground"); m_SplashScreenDrawMode = m_Owner.FindPropertyAssert("m_SplashScreenDrawMode"); m_SplashScreenLogoAnimationZoom = m_Owner.FindPropertyAssert("m_SplashScreenLogoAnimationZoom"); m_SplashScreenLogos = m_Owner.FindPropertyAssert("m_SplashScreenLogos"); m_SplashScreenLogoStyle = m_Owner.FindPropertyAssert("m_SplashScreenLogoStyle"); m_SplashScreenOverlayOpacity = m_Owner.FindPropertyAssert("m_SplashScreenOverlayOpacity"); m_VirtualRealitySplashScreen = m_Owner.FindPropertyAssert("m_VirtualRealitySplashScreen"); m_LogoList = new ReorderableList(m_Owner.serializedObject, m_SplashScreenLogos, true, true, true, true); m_LogoList.elementHeight = k_LogoListElementHeight; m_LogoList.footerHeight = k_LogoListFooterHeight; m_LogoList.onAddCallback = OnLogoListAddCallback; m_LogoList.drawHeaderCallback = DrawLogoListHeaderCallback; m_LogoList.onCanRemoveCallback = OnLogoListCanRemoveCallback; m_LogoList.drawElementCallback = DrawLogoListElementCallback; m_LogoList.drawFooterCallback = DrawLogoListFooterCallback; // Set up animations m_ShowAnimationControlsAnimator.value = m_SplashScreenAnimation.intValue == (int)PlayerSettings.SplashScreen.AnimationMode.Custom; m_ShowBackgroundColorAnimator.value = m_SplashScreenBackgroundLandscape.objectReferenceValue == null; m_ShowLogoControlsAnimator.value = m_ShowUnitySplashLogo.boolValue; SetValueChangeListeners(m_Owner.Repaint); if (s_UnityLogo == null) { s_UnityLogo = Resources.GetBuiltinResource <Sprite>("UnitySplash-cube.png"); } }
public override void OnEnable(PlayerSettingsEditor editor) { this.splashScreenProperties = new SerializedProperty[UnityEditor.iOS.SplashScreen.iOSTypes.Length]; for (int i = 0; i < UnityEditor.iOS.SplashScreen.iOSTypes.Length; i++) { this.splashScreenProperties[i] = editor.FindPropertyAssert(UnityEditor.iOS.SplashScreen.iOSTypes[i].serializationName); } this.iPhoneLaunchScreenProperties.type = editor.FindPropertyAssert("iOSLaunchScreenType"); this.iPhoneLaunchScreenProperties.portraitImage = editor.FindPropertyAssert("iOSLaunchScreenPortrait"); this.iPhoneLaunchScreenProperties.landscapeImage = editor.FindPropertyAssert("iOSLaunchScreenLandscape"); this.iPhoneLaunchScreenProperties.backgroundColor = editor.FindPropertyAssert("iOSLaunchScreenBackgroundColor"); this.iPhoneLaunchScreenProperties.fillPercentage = editor.FindPropertyAssert("iOSLaunchScreenFillPct"); this.iPhoneLaunchScreenProperties.size = editor.FindPropertyAssert("iOSLaunchScreenSize"); this.iPhoneLaunchScreenProperties.customXibPath = editor.FindPropertyAssert("iOSLaunchScreenCustomXibPath"); this.iPadLaunchScreenProperties.type = editor.FindPropertyAssert("iOSLaunchScreeniPadType"); this.iPadLaunchScreenProperties.portraitAndLandscapeImage = editor.FindPropertyAssert("iOSLaunchScreeniPadImage"); this.iPadLaunchScreenProperties.backgroundColor = editor.FindPropertyAssert("iOSLaunchScreeniPadBackgroundColor"); this.iPadLaunchScreenProperties.fillPercentage = editor.FindPropertyAssert("iOSLaunchScreeniPadFillPct"); this.iPadLaunchScreenProperties.size = editor.FindPropertyAssert("iOSLaunchScreeniPadSize"); this.iPadLaunchScreenProperties.customXibPath = editor.FindPropertyAssert("iOSLaunchScreeniPadCustomXibPath"); this.m_AppleDeveloperTeamID = editor.FindPropertyAssert("appleDeveloperTeamID"); this.m_iOSManualSigningProvisioningProfileID = editor.FindPropertyAssert("iOSManualSigningProvisioningProfileID"); this.m_AppleEnableAutomaticSigning = editor.FindPropertyAssert("appleEnableAutomaticSigning"); this.InitRequirements(); this.m_AppInBackgroundBehavior = editor.FindPropertyAssert("iosAppInBackgroundBehavior"); }
public override void OnEnable(PlayerSettingsEditor settingsEditor) { this.m_SettingsEditor = settingsEditor; this.m_GUIDefaultIsFullScreen = EditorGUIUtility.TextContent("Default Is Full Screen*"); this.m_CompanyName = settingsEditor.FindPropertyAssert("companyName"); this.m_ProductName = settingsEditor.FindPropertyAssert("productName"); this.m_DefaultIsFullScreen = settingsEditor.FindPropertyAssert("defaultIsFullScreen"); this.m_RunInBackground = settingsEditor.FindPropertyAssert("runInBackground"); this.m_MetroPackageName = settingsEditor.FindPropertyAssert("metroPackageName"); this.m_MetroPackageName.stringValue = Utility.TryValidatePackageName(this.m_MetroPackageName.stringValue); this.m_MetroPackageVersion = settingsEditor.FindPropertyAssert("metroPackageVersion"); this.m_MetroPackageVersion.stringValue = PlayerSettings.WSA.ValidatePackageVersion(this.m_MetroPackageVersion.stringValue); this.m_MetroApplicationDescription = settingsEditor.FindPropertyAssert("metroApplicationDescription"); this.m_MetroApplicationDescription.stringValue = this.ValidateMetroApplicationDescription(this.m_MetroApplicationDescription.stringValue); this.m_MetroTileShortName = settingsEditor.FindPropertyAssert("metroTileShortName"); this.m_MetroTileShortName.stringValue = this.ValidateMetroTileShortName(this.m_MetroTileShortName.stringValue); this.m_MetroTileBackgroundColor = settingsEditor.FindPropertyAssert("metroTileBackgroundColor"); this.m_MetroFTAName = settingsEditor.FindPropertyAssert("metroFTAName"); this.m_MetroFTAFileTypes = settingsEditor.FindPropertyAssert("metroFTAFileTypes"); this.m_MetroProtocolName = settingsEditor.FindPropertyAssert("metroProtocolName"); PlayerSettings.WSAImageScale[] scales = new PlayerSettings.WSAImageScale[] { PlayerSettings.WSAImageScale._80 }; PlayerSettings.WSAImageScale[] scaleArray2 = new PlayerSettings.WSAImageScale[] { PlayerSettings.WSAImageScale._100 }; PlayerSettings.WSAImageScale[] scaleArray3 = new PlayerSettings.WSAImageScale[] { PlayerSettings.WSAImageScale._100 }; this.m_PackageLogos = CreateScaledSquareImageGroup(PlayerSettings.WSAImageType.PackageLogo, new PlayerSettings.WSAImageScale[] { PlayerSettings.WSAImageScale._100 }, "Scale {0}% ({1}x{2} pixels)|Specifies the image that appears on the Store description page for the product.", new int[] { 50, 0x3f, 70, 0x4b, 90, 100, 120, 200 }); MetroScaledImage[] sourceArray = CreateScaledSquareImages(PlayerSettings.WSAImageType.StoreTileSmallLogo, scales, "Scale {0}% ({1}x{2} pixels)|Specifies the image that is shown when viewing all installed applications.", new int[] { 0x18, 30, 0x2a, 0x36 }); MetroScaledImage[] imageArray2 = CreateScaledSquareImages(PlayerSettings.WSAImageType.StoreTileSmallLogo, new PlayerSettings.WSAImageScale[] { PlayerSettings.WSAImageScale.Target16 }, "Target size {0} ({1}x{2} pixels)|Specifies the image that is shown when viewing all installed applications.", new int[] { 0x10, 0x20, 0x30, 0x100 }); MetroScaledImage[] destinationArray = new MetroScaledImage[sourceArray.Length + imageArray2.Length]; Array.Copy(sourceArray, destinationArray, sourceArray.Length); Array.Copy(imageArray2, 0, destinationArray, sourceArray.Length, imageArray2.Length); this.m_StoreSmallLogos = new MetroScaledImageGroup(destinationArray); this.m_MediumTiles = CreateScaledSquareImageGroup(PlayerSettings.WSAImageType.StoreTileLogo, scales, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's tile in Windows.", new int[] { 120, 150, 210, 270 }); this.m_WideTiles = CreateScaledImageGroup(PlayerSettings.WSAImageType.StoreTileWideLogo, scales, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's wide tile in Windows if supported.", new int[] { 0xf8, 310, 0x1b2, 0x22e }, new int[] { 120, 150, 210, 270 }); this.m_SmallTiles = CreateScaledSquareImageGroup(PlayerSettings.WSAImageType.StoreSmallTile, scales, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's small tile in Windows if supported.", new int[] { 0x38, 70, 0x62, 0x7e }); this.m_LargeTiles = CreateScaledSquareImageGroup(PlayerSettings.WSAImageType.StoreLargeTile, scales, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's large tile in Windows if supported.", new int[] { 0xf8, 310, 0x1b2, 0x22e }); this.m_PhoneAppIcons = CreateScaledSquareImageGroup(PlayerSettings.WSAImageType.PhoneAppIcon, scaleArray2, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's small tile.", new int[] { 0x2c, 0x3e, 0x6a }); this.m_PhoneSmallTiles = CreateScaledSquareImageGroup(PlayerSettings.WSAImageType.PhoneSmallTile, scaleArray2, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's small tile", new int[] { 0x47, 0x63, 170 }); this.m_PhoneMediumTiles = CreateScaledSquareImageGroup(PlayerSettings.WSAImageType.PhoneMediumTile, scaleArray2, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's tile.", new int[] { 150, 210, 360 }); this.m_PhoneWideTiles = CreateScaledImageGroup(PlayerSettings.WSAImageType.PhoneWideTile, scaleArray2, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's wide tile.", new int[] { 310, 0x1b2, 0x2e8 }, new int[] { 150, 210, 360 }); MetroScaledImage[] imageArray4 = CreateScaledSquareImages(PlayerSettings.WSAImageType.UWPSquare44x44Logo, scaleArray3, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's tile.", new int[] { 0x2c, 0x37, 0x42, 0x58, 0xb0 }); MetroScaledImage[] imageArray5 = CreateScaledSquareImages(PlayerSettings.WSAImageType.UWPSquare44x44Logo, new PlayerSettings.WSAImageScale[] { PlayerSettings.WSAImageScale.Target16 }, "Target size {0} ({1}x{2} pixels)|Specifies the image to display on the app's tile.", new int[] { 0x10, 0x18, 0x30, 0x100 }); MetroScaledImage[] imageArray6 = new MetroScaledImage[imageArray4.Length + imageArray5.Length]; Array.Copy(imageArray4, imageArray6, imageArray4.Length); Array.Copy(imageArray5, 0, imageArray6, imageArray4.Length, imageArray5.Length); this.m_UWPSquare44x44Logos = new MetroScaledImageGroup(imageArray6); this.m_UWPSquare71x71Logos = CreateScaledSquareImageGroup(PlayerSettings.WSAImageType.UWPSquare71x71Logo, scaleArray3, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's tile.", new int[] { 0x47, 0x59, 0x6b, 0x8e, 0x11c }); this.m_UWPSquare150x150Logos = CreateScaledSquareImageGroup(PlayerSettings.WSAImageType.UWPSquare150x150Logo, scaleArray3, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's tile.", new int[] { 150, 0xbc, 0xe1, 300, 600 }); this.m_UWPSquare310x310Logos = CreateScaledSquareImageGroup(PlayerSettings.WSAImageType.UWPSquare310x310Logo, scaleArray3, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's tile.", new int[] { 310, 0x184, 0x1d1, 620, 0x4d8 }); this.m_UWPWide310x150Logos = CreateScaledImageGroup(PlayerSettings.WSAImageType.UWPWide310x150Logo, scaleArray3, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's tile.", new int[] { 310, 0x184, 0x1d1, 620, 0x4d8 }, new int[] { 150, 0xbc, 0xe1, 300, 600 }); this.m_WindowsSplashScreens = CreateScaledImages(PlayerSettings.WSAImageType.SplashScreenImage, new PlayerSettings.WSAImageScale[] { PlayerSettings.WSAImageScale._100 }, "Scale {0}% ({1}x{2} pixels)|Sets the foreground image for the app's splash screen.", new int[] { 620, 0x307, 0x364, 930, 0x45c, 0x4d8, 0x9b0 }, new int[] { 300, 0x177, 420, 450, 540, 600, 0x4b0 }); this.m_PhoneSplashScreens = CreateScaledImages(PlayerSettings.WSAImageType.PhoneSplashScreen, scaleArray2, "Scale {0}% ({1}x{2} pixels)|Sets the foreground image for the app's splash screen.", new int[] { 480, 0x2a0, 0x480 }, new int[] { 800, 0x460, 0x780 }); this.m_HolographicSplashScreen = settingsEditor.FindPropertyAssert("m_VirtualRealitySplashScreen"); this.m_HolographicPauseOnTrackingLoss = settingsEditor.FindPropertyAssert("m_HolographicPauseOnTrackingLoss"); this.m_HolographicTrackingLossScreen = settingsEditor.FindPropertyAssert("m_HolographicTrackingLossScreen"); }
public override void OnEnable(PlayerSettingsEditor settingsEditor) { this.m_SettingsEditor = settingsEditor; this.m_GUIDefaultIsFullScreen = EditorGUIUtility.TextContent("Default Is Full Screen*"); this.m_CompanyName = settingsEditor.FindPropertyAssert("companyName"); this.m_ProductName = settingsEditor.FindPropertyAssert("productName"); this.m_DefaultIsFullScreen = settingsEditor.FindPropertyAssert("defaultIsFullScreen"); this.m_RunInBackground = settingsEditor.FindPropertyAssert("runInBackground"); this.m_MetroPackageName = settingsEditor.FindPropertyAssert("metroPackageName"); this.m_MetroPackageName.stringValue = Utility.TryValidatePackageName(this.m_MetroPackageName.stringValue); this.m_MetroPackageVersion = settingsEditor.FindPropertyAssert("metroPackageVersion"); this.m_MetroPackageVersion.stringValue = PlayerSettings.WSA.ValidatePackageVersion(this.m_MetroPackageVersion.stringValue); this.m_MetroApplicationDescription = settingsEditor.FindPropertyAssert("metroApplicationDescription"); this.m_MetroApplicationDescription.stringValue = this.ValidateMetroApplicationDescription(this.m_MetroApplicationDescription.stringValue); this.m_MetroTileShortName = settingsEditor.FindPropertyAssert("metroTileShortName"); this.m_MetroTileShortName.stringValue = this.ValidateMetroTileShortName(this.m_MetroTileShortName.stringValue); this.m_MetroTileBackgroundColor = settingsEditor.FindPropertyAssert("metroTileBackgroundColor"); this.m_MetroFTAName = settingsEditor.FindPropertyAssert("metroFTAName"); this.m_MetroFTAFileTypes = settingsEditor.FindPropertyAssert("metroFTAFileTypes"); this.m_MetroProtocolName = settingsEditor.FindPropertyAssert("metroProtocolName"); PlayerSettings.WSAImageScale[] scales = new PlayerSettings.WSAImageScale[] { PlayerSettings.WSAImageScale._80 }; PlayerSettings.WSAImageScale[] scaleArray2 = new PlayerSettings.WSAImageScale[] { PlayerSettings.WSAImageScale._100 }; PlayerSettings.WSAImageScale[] scaleArray3 = new PlayerSettings.WSAImageScale[] { PlayerSettings.WSAImageScale._100 }; this.m_PackageLogos = CreateScaledSquareImageGroup(PlayerSettings.WSAImageType.PackageLogo, new PlayerSettings.WSAImageScale[] { PlayerSettings.WSAImageScale._100 }, "Scale {0}% ({1}x{2} pixels)|Specifies the image that appears on the Store description page for the product.", new int[] { 50, 0x3f, 70, 0x4b, 90, 100, 120, 200 }); MetroScaledImage[] sourceArray = CreateScaledSquareImages(PlayerSettings.WSAImageType.StoreTileSmallLogo, scales, "Scale {0}% ({1}x{2} pixels)|Specifies the image that is shown when viewing all installed applications.", new int[] { 0x18, 30, 0x2a, 0x36 }); MetroScaledImage[] imageArray2 = CreateScaledSquareImages(PlayerSettings.WSAImageType.StoreTileSmallLogo, new PlayerSettings.WSAImageScale[] { PlayerSettings.WSAImageScale.Target16 }, "Target size {0} ({1}x{2} pixels)|Specifies the image that is shown when viewing all installed applications.", new int[] { 0x10, 0x20, 0x30, 0x100 }); MetroScaledImage[] destinationArray = new MetroScaledImage[sourceArray.Length + imageArray2.Length]; Array.Copy(sourceArray, destinationArray, sourceArray.Length); Array.Copy(imageArray2, 0, destinationArray, sourceArray.Length, imageArray2.Length); this.m_StoreSmallLogos = new MetroScaledImageGroup(destinationArray); this.m_MediumTiles = CreateScaledSquareImageGroup(PlayerSettings.WSAImageType.StoreTileLogo, scales, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's tile in Windows.", new int[] { 120, 150, 210, 270 }); this.m_WideTiles = CreateScaledImageGroup(PlayerSettings.WSAImageType.StoreTileWideLogo, scales, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's wide tile in Windows if supported.", new int[] { 0xf8, 310, 0x1b2, 0x22e }, new int[] { 120, 150, 210, 270 }); this.m_SmallTiles = CreateScaledSquareImageGroup(PlayerSettings.WSAImageType.StoreSmallTile, scales, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's small tile in Windows if supported.", new int[] { 0x38, 70, 0x62, 0x7e }); this.m_LargeTiles = CreateScaledSquareImageGroup(PlayerSettings.WSAImageType.StoreLargeTile, scales, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's large tile in Windows if supported.", new int[] { 0xf8, 310, 0x1b2, 0x22e }); this.m_PhoneAppIcons = CreateScaledSquareImageGroup(PlayerSettings.WSAImageType.PhoneAppIcon, scaleArray2, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's small tile.", new int[] { 0x2c, 0x3e, 0x6a }); this.m_PhoneSmallTiles = CreateScaledSquareImageGroup(PlayerSettings.WSAImageType.PhoneSmallTile, scaleArray2, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's small tile", new int[] { 0x47, 0x63, 170 }); this.m_PhoneMediumTiles = CreateScaledSquareImageGroup(PlayerSettings.WSAImageType.PhoneMediumTile, scaleArray2, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's tile.", new int[] { 150, 210, 360 }); this.m_PhoneWideTiles = CreateScaledImageGroup(PlayerSettings.WSAImageType.PhoneWideTile, scaleArray2, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's wide tile.", new int[] { 310, 0x1b2, 0x2e8 }, new int[] { 150, 210, 360 }); MetroScaledImage[] imageArray4 = CreateScaledSquareImages(PlayerSettings.WSAImageType.UWPSquare44x44Logo, scaleArray3, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's tile.", new int[] { 0x2c, 0x37, 0x42, 0x58, 0xb0 }); MetroScaledImage[] imageArray5 = CreateScaledSquareImages(PlayerSettings.WSAImageType.UWPSquare44x44Logo, new PlayerSettings.WSAImageScale[] { PlayerSettings.WSAImageScale.Target16 }, "Target size {0} ({1}x{2} pixels)|Specifies the image to display on the app's tile.", new int[] { 0x10, 0x18, 0x30, 0x100 }); MetroScaledImage[] imageArray6 = new MetroScaledImage[imageArray4.Length + imageArray5.Length]; Array.Copy(imageArray4, imageArray6, imageArray4.Length); Array.Copy(imageArray5, 0, imageArray6, imageArray4.Length, imageArray5.Length); this.m_UWPSquare44x44Logos = new MetroScaledImageGroup(imageArray6); this.m_UWPSquare71x71Logos = CreateScaledSquareImageGroup(PlayerSettings.WSAImageType.UWPSquare71x71Logo, scaleArray3, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's tile.", new int[] { 0x47, 0x59, 0x6b, 0x8e, 0x11c }); this.m_UWPSquare150x150Logos = CreateScaledSquareImageGroup(PlayerSettings.WSAImageType.UWPSquare150x150Logo, scaleArray3, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's tile.", new int[] { 150, 0xbc, 0xe1, 300, 600 }); this.m_UWPSquare310x310Logos = CreateScaledSquareImageGroup(PlayerSettings.WSAImageType.UWPSquare310x310Logo, scaleArray3, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's tile.", new int[] { 310, 0x184, 0x1d1, 620, 0x4d8 }); this.m_UWPWide310x150Logos = CreateScaledImageGroup(PlayerSettings.WSAImageType.UWPWide310x150Logo, scaleArray3, "Scale {0}% ({1}x{2} pixels)|Specifies the image to display on the app's tile.", new int[] { 310, 0x184, 0x1d1, 620, 0x4d8 }, new int[] { 150, 0xbc, 0xe1, 300, 600 }); this.m_WindowsSplashScreens = CreateScaledImages(PlayerSettings.WSAImageType.SplashScreenImage, new PlayerSettings.WSAImageScale[] { PlayerSettings.WSAImageScale._100 }, "Scale {0}% ({1}x{2} pixels)|Sets the foreground image for the app's splash screen.", new int[] { 620, 0x307, 0x364, 930, 0x45c, 0x4d8, 0x9b0 }, new int[] { 300, 0x177, 420, 450, 540, 600, 0x4b0 }); this.m_PhoneSplashScreens = CreateScaledImages(PlayerSettings.WSAImageType.PhoneSplashScreen, scaleArray2, "Scale {0}% ({1}x{2} pixels)|Sets the foreground image for the app's splash screen.", new int[] { 480, 0x2a0, 0x480 }, new int[] { 800, 0x460, 0x780 }); this.m_HolographicSplashScreen = settingsEditor.FindPropertyAssert("m_VirtualRealitySplashScreen"); this.m_HolographicPauseOnTrackingLoss = settingsEditor.FindPropertyAssert("m_HolographicPauseOnTrackingLoss"); this.m_HolographicTrackingLossScreen = settingsEditor.FindPropertyAssert("m_HolographicTrackingLossScreen"); }
public override void OnEnable(PlayerSettingsEditor settingsEditor) { this.m_AndroidBundleVersionCode = settingsEditor.FindPropertyAssert("AndroidBundleVersionCode"); this.m_AndroidKeystoreName = settingsEditor.FindPropertyAssert("AndroidKeystoreName"); this.m_AndroidKeyaliasName = settingsEditor.FindPropertyAssert("AndroidKeyaliasName"); this.m_AndroidMinSdkVersion = settingsEditor.FindPropertyAssert("AndroidMinSdkVersion"); this.m_AndroidPreferredInstallLocation = settingsEditor.FindPropertyAssert("AndroidPreferredInstallLocation"); this.m_AndroidSplashScreenScale = settingsEditor.FindPropertyAssert("AndroidSplashScreenScale"); this.m_AndroidTargetDevice = settingsEditor.FindPropertyAssert("AndroidTargetDevice"); this.m_AndroidTVCompatibility = settingsEditor.FindPropertyAssert("AndroidTVCompatibility"); this.m_AndroidIsGame = settingsEditor.FindPropertyAssert("AndroidIsGame"); this.m_AndroidEnableBanner = settingsEditor.FindPropertyAssert("androidEnableBanner"); this.m_AndroidGamepadSupportLevel = settingsEditor.FindPropertyAssert("androidGamepadSupportLevel"); this.m_APKExpansionFiles = settingsEditor.FindPropertyAssert("APKExpansionFiles"); this.m_ForceInternetPermission = settingsEditor.FindPropertyAssert("ForceInternetPermission"); this.m_ForceSDCardPermission = settingsEditor.FindPropertyAssert("ForceSDCardPermission"); this.m_AndroidSplashScreen = settingsEditor.FindPropertyAssert("androidSplashScreen"); this.m_SettingsEditor = settingsEditor; }
public override void OnEnable(PlayerSettingsEditor editor) { this.splashScreenProperties = new SerializedProperty[splashScreenTypes.Length]; for (int i = 0; i < splashScreenTypes.Length; i++) { this.splashScreenProperties[i] = editor.FindPropertyAssert(splashScreenTypes[i].serializationName); } this.m_SmallIconsLayers = new ReorderableIconLayerList(); this.m_SmallIconsLayers.headerString = LocalizationDatabase.GetLocalizedString("Small icon layers"); this.m_SmallIconsLayers.minItems = 2; this.m_SmallIconsLayers.SetImageSize(400, 240); if (<>f__am$cache0 == null) {
public override void OnEnable(PlayerSettingsEditor settingsEditor) { this.m_AndroidBundleVersionCode = settingsEditor.FindPropertyAssert("AndroidBundleVersionCode"); this.m_AndroidKeystoreName = settingsEditor.FindPropertyAssert("AndroidKeystoreName"); this.m_AndroidKeyaliasName = settingsEditor.FindPropertyAssert("AndroidKeyaliasName"); this.m_AndroidMinSdkVersion = settingsEditor.FindPropertyAssert("AndroidMinSdkVersion"); this.m_AndroidPreferredInstallLocation = settingsEditor.FindPropertyAssert("AndroidPreferredInstallLocation"); this.m_AndroidSplashScreenScale = settingsEditor.FindPropertyAssert("AndroidSplashScreenScale"); this.m_AndroidTargetDevice = settingsEditor.FindPropertyAssert("AndroidTargetDevice"); this.m_AndroidTVCompatibility = settingsEditor.FindPropertyAssert("AndroidTVCompatibility"); this.m_AndroidIsGame = settingsEditor.FindPropertyAssert("AndroidIsGame"); this.m_AndroidEnableBanner = settingsEditor.FindPropertyAssert("androidEnableBanner"); this.m_AndroidGamepadSupportLevel = settingsEditor.FindPropertyAssert("androidGamepadSupportLevel"); this.m_APKExpansionFiles = settingsEditor.FindPropertyAssert("APKExpansionFiles"); this.m_ForceInternetPermission = settingsEditor.FindPropertyAssert("ForceInternetPermission"); this.m_ForceSDCardPermission = settingsEditor.FindPropertyAssert("ForceSDCardPermission"); this.m_AndroidSplashScreen = settingsEditor.FindPropertyAssert("androidSplashScreen"); this.m_SettingsEditor = settingsEditor; }