Update/bugfix texture export, folder creation, minor changes.

Bugfix texture export: where textures regarding of their settings would be exported as sprites.
Update texture export: original textures will now be copied to get the pixel values with the correct import settings applied to prevent strange-looking normal maps and color changes.
Folder creation: the required folders will now be created by the tool, no need anymore to save empty folders.
Minor changes: Renamed some variables, testing a new layout error fix, started working on material export.
This commit is contained in:
max
2019-11-23 21:59:01 +01:00
parent e7ce849108
commit 279edb1e0e
26 changed files with 196 additions and 233 deletions

View File

@ -12,6 +12,7 @@ namespace MA_TextureAtlasserPro
public ModelExportSettings modelExportSettings = new ModelExportSettings();
public TextureExportSettings textureExportSettings = new TextureExportSettings();
public MaterialExportSettings materialExportSettings = new MaterialExportSettings();
}
[System.Serializable]
@ -60,4 +61,12 @@ namespace MA_TextureAtlasserPro
Sprite,
SpriteSliced
}
[System.Serializable]
public class MaterialExportSettings
{
[Header("Material settings:")]
public string shader = "Standard";
public string[] shaderPropertyNames = { "_MainTex", "_MetallicGlossMap", "_BumpMap" };
}
}