Skip to content

Commit 3b2bb39

Browse files
committed
[增加]1. 增加透明通道的导入
1 parent a8a4089 commit 3b2bb39

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Editor/UITextureAssetPostprocessor.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ void OnPreprocessTexture()
1919
{
2020
textureImporter.mipmapEnabled = false;
2121
}
22+
23+
textureImporter.alphaSource = TextureImporterAlphaSource.FromInput;
24+
textureImporter.alphaIsTransparency = true;
25+
2226
}
2327
}
2428
}

0 commit comments

Comments
 (0)