public void Sync() { if (!this.isDefault && (!this.m_Overridden || this.m_OverriddenIsDifferent)) { TextureImportPlatformSettings textureImportPlatformSettings = this.m_Inspector.m_PlatformSettings[0]; this.m_MaxTextureSize = textureImportPlatformSettings.m_MaxTextureSize; this.m_MaxTextureSizeIsDifferent = textureImportPlatformSettings.m_MaxTextureSizeIsDifferent; this.m_TextureFormatArray = (TextureImporterFormat[])textureImportPlatformSettings.m_TextureFormatArray.Clone(); this.m_TextureFormatIsDifferent = textureImportPlatformSettings.m_TextureFormatIsDifferent; this.m_CompressionQuality = textureImportPlatformSettings.m_CompressionQuality; this.m_CompressionQualityIsDifferent = textureImportPlatformSettings.m_CompressionQualityIsDifferent; } TextureImporterType textureType = this.m_Inspector.textureType; int i = 0; while (i < this.importers.Length) { TextureImporter textureImporter = this.importers[i]; TextureImporterSettings settings = this.GetSettings(textureImporter); if (textureType == TextureImporterType.Advanced) { if (!this.isDefault) { if (!this.SupportsFormat(this.m_TextureFormatArray[i], textureImporter)) { this.m_TextureFormatArray[i] = TextureImporter.FullToSimpleTextureFormat(this.m_TextureFormatArray[i]); } if (this.m_TextureFormatArray[i] < (TextureImporterFormat)0) { this.m_TextureFormatArray[i] = TextureImporter.SimpleToFullTextureFormat2(this.m_TextureFormatArray[i], textureType, settings, textureImporter.DoesSourceTextureHaveAlpha(), textureImporter.IsSourceTextureHDR(), this.m_Target); } goto IL_14A; } } else { if (this.m_TextureFormatArray[i] >= (TextureImporterFormat)0) { this.m_TextureFormatArray[i] = TextureImporter.FullToSimpleTextureFormat(this.m_TextureFormatArray[i]); goto IL_14A; } goto IL_14A; } IL_17B: i++; continue; IL_14A: if (settings.normalMap && !TextureImporterInspector.IsGLESMobileTargetPlatform(this.m_Target)) { this.m_TextureFormatArray[i] = TextureImporterInspector.MakeTextureFormatHaveAlpha(this.m_TextureFormatArray[i]); goto IL_17B; } goto IL_17B; } this.m_TextureFormatIsDifferent = false; TextureImporterFormat[] textureFormatArray = this.m_TextureFormatArray; for (int j = 0; j < textureFormatArray.Length; j++) { TextureImporterFormat textureImporterFormat = textureFormatArray[j]; if (textureImporterFormat != this.m_TextureFormatArray[0]) { this.m_TextureFormatIsDifferent = true; } } }