| | |
| | | if (textureImporter != null) |
| | | { |
| | | textureImporter.textureType = TextureImporterType.Sprite; |
| | | textureImporter.spritePackingTag = string.Empty; |
| | | textureImporter.assetBundleName = "builtin/sprites"; |
| | | |
| | | var platformSetting = new TextureImporterPlatformSettings(); |
| | |
| | | platformSetting.allowsAlphaSplitting = false; |
| | | platformSetting.name = "Android"; |
| | | platformSetting.maxTextureSize = 1024; |
| | | platformSetting.format = TextureImporterFormat.ETC2_RGB4; |
| | | platformSetting.format = TextureImporterFormat.ASTC_6x6; |
| | | platformSetting.compressionQuality = 1; |
| | | break; |
| | | case BuildTarget.iOS: |
| | |
| | | platformSetting.allowsAlphaSplitting = false; |
| | | platformSetting.name = "iOS"; |
| | | platformSetting.maxTextureSize = 1024; |
| | | platformSetting.format = TextureImporterFormat.PVRTC_RGB4; |
| | | platformSetting.format = TextureImporterFormat.ASTC_6x6; |
| | | platformSetting.compressionQuality = 1; |
| | | break; |
| | | } |
| | |
| | | if (textureImporter != null) |
| | | { |
| | | textureImporter.textureType = TextureImporterType.Sprite; |
| | | textureImporter.spritePackingTag = string.Empty; |
| | | textureImporter.assetBundleName = "builtin/sprites"; |
| | | |
| | | var platformSetting = new TextureImporterPlatformSettings(); |
| | |
| | | platformSetting.allowsAlphaSplitting = false; |
| | | platformSetting.name = "Android"; |
| | | platformSetting.maxTextureSize = 1024; |
| | | platformSetting.format = TextureImporterFormat.ETC2_RGB4; |
| | | platformSetting.format = TextureImporterFormat.ASTC_6x6; |
| | | platformSetting.compressionQuality = 1; |
| | | break; |
| | | case BuildTarget.iOS: |
| | |
| | | platformSetting.allowsAlphaSplitting = false; |
| | | platformSetting.name = "iOS"; |
| | | platformSetting.maxTextureSize = 1024; |
| | | platformSetting.format = TextureImporterFormat.PVRTC_RGB4; |
| | | platformSetting.format = TextureImporterFormat.ASTC_6x6; |
| | | platformSetting.compressionQuality = 1; |
| | | break; |
| | | } |
| | |
| | | if (textureImporter != null) |
| | | { |
| | | textureImporter.textureType = TextureImporterType.Sprite; |
| | | textureImporter.spritePackingTag = string.Empty; |
| | | textureImporter.assetBundleName = "builtin/sprites"; |
| | | |
| | | var platformSetting = new TextureImporterPlatformSettings(); |
| | |
| | | platformSetting.overridden = true; |
| | | platformSetting.allowsAlphaSplitting = false; |
| | | platformSetting.name = "Android"; |
| | | platformSetting.maxTextureSize = 512; |
| | | platformSetting.format = TextureImporterFormat.ETC2_RGBA8; |
| | | platformSetting.maxTextureSize = 1024; |
| | | platformSetting.format = TextureImporterFormat.ASTC_6x6; |
| | | platformSetting.compressionQuality = 1; |
| | | break; |
| | | case BuildTarget.iOS: |
| | | platformSetting.overridden = true; |
| | | platformSetting.allowsAlphaSplitting = false; |
| | | platformSetting.name = "iOS"; |
| | | platformSetting.maxTextureSize = 512; |
| | | platformSetting.format = TextureImporterFormat.PVRTC_RGBA4; |
| | | platformSetting.maxTextureSize = 1024; |
| | | platformSetting.format = TextureImporterFormat.ASTC_6x6; |
| | | platformSetting.compressionQuality = 1; |
| | | break; |
| | | } |