예제 #1
0
        static Dictionary <string, object> GetTextureImporterValues(TextureImporter importer)
        {
            var dict = EditorCommonUtils.GetValues(importer);

            EditorCommonUtils.GetValues(importer.GetDefaultPlatformTextureSettings(), dict, "Default");
            EditorCommonUtils.GetValues(importer.GetPlatformTextureSettings("Standalone"), dict, "Standalone");
            EditorCommonUtils.GetValues(importer.GetPlatformTextureSettings("Android"), dict, "Android");
            EditorCommonUtils.GetValues(importer.GetPlatformTextureSettings("iPhone"), dict, "iPhone");
            return(dict);
        }
예제 #2
0
        static Dictionary <string, object> GetSpriteAtlasSettingsValues(SpriteAtlasTextureSettings[] textureSettingsArray, Dictionary <string, TextureImporterPlatformSettings>[] platformSettingsDictArray)
        {
            var dict = new Dictionary <string, object>();

            for (int i = 0; i < ATLAS_TYPE_NUMBER; i++)
            {
                EditorCommonUtils.GetValues(textureSettingsArray[i], dict, "textureSettings" + i);
                foreach (string platform in PLATFORMS)
                {
                    EditorCommonUtils.GetValues(platformSettingsDictArray[i][platform], dict, platform + i);
                }
            }
            return(dict);
        }