فهرست منبع

Fix 2D Projects breaking PMA atlases.

Disable alphaIsTransparency by default.
This will prevent 2D projects from causing PMA atlases to bleed colors into transparent areas.
John 10 سال پیش
والد
کامیت
987f4a17d2
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      spine-unity/Assets/spine-unity/Editor/SpineEditorUtilities.cs

+ 1 - 0
spine-unity/Assets/spine-unity/Editor/SpineEditorUtilities.cs

@@ -390,6 +390,7 @@ public class SpineEditorUtilities : AssetPostprocessor {
 			TextureImporter texImporter = (TextureImporter)TextureImporter.GetAtPath(texturePath);
 			texImporter.textureFormat = TextureImporterFormat.AutomaticTruecolor;
 			texImporter.mipmapEnabled = false;
+			texImporter.alphaIsTransparency = false;
 			texImporter.maxTextureSize = 2048;
 
 			EditorUtility.SetDirty(texImporter);