mirror of
https://github.com/BlackMATov/unity-flash-tools.git
synced 2025-12-15 12:29:49 +07:00
force fullrect for sprites
This commit is contained in:
@@ -211,6 +211,12 @@ namespace FTEditor.Postprocessors {
|
||||
#else
|
||||
atlas_importer.textureFormat = SwfAtlasFormatToImporterFormat(asset.Settings.AtlasTextureFormat);
|
||||
#endif
|
||||
|
||||
var atlas_settings = new TextureImporterSettings();
|
||||
atlas_importer.ReadTextureSettings(atlas_settings);
|
||||
atlas_settings.spriteMeshType = SpriteMeshType.FullRect;
|
||||
atlas_importer.SetTextureSettings(atlas_settings);
|
||||
|
||||
atlas_importer.SaveAndReimport();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user