Beispiel #1
0
 public static void SetTextureFormat()
 {
     HandleTextureFormat(EditorResourcePaths.GetSpriteFiles(), SetResourcesFormat);
     HandleTextureFormat(EditorResourcePaths.GetRawTextureFiles(), SetRawTextureFormat);
     HandleSpriteAtlasFormat(EditorResourcePaths.GetAtlasFiles());
     DebugUtil.Log("SetTextureFormat Done!");
 }
Beispiel #2
0
 public static void CheckETC2()
 {
     foreach (string file in EditorResourcePaths.GetSpriteFiles())
     {
         Texture2D texture = EditorCommonUtils.ReadTexture(file);
         if (texture.width % 4 != 0 || texture.height % 4 != 0)
         {
             DebugUtil.LogWarning("该图片不满足Android的压缩格式 : " + file);
         }
     }
     DebugUtil.Log("CheckETC2 Done!");
 }