예제 #1
0
        void RenameSecondaryPlatformSettings(string oldName, string newName)
        {
            for (var i = 0; i < targets.Length; ++i)
            {
                SpriteAtlas sa = (SpriteAtlas)targets[i];

                sa.DeleteSecondaryPlatformSettings(oldName);

                var defaultPlatformSettings = m_TempPlatformSettings[TextureImporterInspector.s_DefaultPlatformName];
                sa.SetSecondaryPlatformSettings(defaultPlatformSettings[i], newName);

                foreach (var buildPlatform in m_ValidPlatforms)
                {
                    var platformSettings = m_TempPlatformSettings[buildPlatform.name];
                    sa.SetSecondaryPlatformSettings(platformSettings[i], newName);
                }
            }
        }