少年修仙传客户端基础资源
client_Wu Xijin
2018-08-22 4ce279d8cee1bf5a4deb4473727744f32d40cead
修改图集标准化工具
1个文件已修改
11 ■■■■ 已修改文件
Assets/Editor/Tool/UpdateSpritePackingSetting.cs 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/Tool/UpdateSpritePackingSetting.cs
@@ -70,13 +70,20 @@
                        continue;
                    }
                    if (!setting.Equal(textureImporter))
                    if (!setting.Equal(textureImporter)
                        || textureImporter.textureType != TextureImporterType.Sprite
                        || textureImporter.spriteImportMode != SpriteImportMode.Single
                        || textureImporter.mipmapEnabled != false
                        || textureImporter.alphaIsTransparency != true
                        || textureImporter.spritePackingTag != folderName
                        || textureImporter.wrapMode != TextureWrapMode.Clamp
                        || textureImporter.filterMode != FilterMode.Bilinear)
                    {
                        textureImporter.alphaSource = setting.alphaSource;
                        textureImporter.textureType = TextureImporterType.Sprite;
                        textureImporter.spriteImportMode = SpriteImportMode.Single;
                        textureImporter.assetBundleName = StringUtility.Contact("ui/sprite/", setting.folderName.ToLower());
                        textureImporter.mipmapEnabled = false;
                        textureImporter.alphaSource = setting.alphaSource;
                        textureImporter.alphaIsTransparency = true;
                        textureImporter.spritePackingTag = folderName;
                        textureImporter.wrapMode = TextureWrapMode.Clamp;