private void SyncPlatformSettings() { this.m_TempPlatformSettings = new Dictionary <string, List <TextureImporterPlatformSettings> >(); List <TextureImporterPlatformSettings> list = new List <TextureImporterPlatformSettings>(); this.m_TempPlatformSettings.Add(this.kDefaultPlatformName, list); UnityEngine.Object[] targets = base.targets; for (int i = 0; i < targets.Length; i++) { UnityEngine.Object obj = targets[i]; TextureImporterPlatformSettings textureImporterPlatformSettings = new TextureImporterPlatformSettings(); textureImporterPlatformSettings.name = this.kDefaultPlatformName; SerializedObject serializedObject = new SerializedObject(obj); textureImporterPlatformSettings.maxTextureSize = serializedObject.FindProperty("m_EditorData.textureSettings.maxTextureSize").intValue; textureImporterPlatformSettings.textureCompression = (TextureImporterCompression)serializedObject.FindProperty("m_EditorData.textureSettings.textureCompression").enumValueIndex; textureImporterPlatformSettings.crunchedCompression = serializedObject.FindProperty("m_EditorData.textureSettings.crunchedCompression").boolValue; textureImporterPlatformSettings.compressionQuality = serializedObject.FindProperty("m_EditorData.textureSettings.compressionQuality").intValue; list.Add(textureImporterPlatformSettings); } this.m_ValidPlatforms = BuildPlatforms.instance.GetValidPlatforms(); foreach (BuildPlatform current in this.m_ValidPlatforms) { List <TextureImporterPlatformSettings> list2 = new List <TextureImporterPlatformSettings>(); this.m_TempPlatformSettings.Add(current.name, list2); UnityEngine.Object[] targets2 = base.targets; for (int j = 0; j < targets2.Length; j++) { SpriteAtlas spriteAtlas = (SpriteAtlas)targets2[j]; TextureImporterPlatformSettings textureImporterPlatformSettings2 = new TextureImporterPlatformSettings(); textureImporterPlatformSettings2.name = current.name; spriteAtlas.CopyPlatformSettingsIfAvailable(current.name, textureImporterPlatformSettings2); list2.Add(textureImporterPlatformSettings2); } } }