25 lines
885 B
C#
25 lines
885 B
C#
// AtlasConfiguration.cs
|
|
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
[FilePath("ProjectSettings/AtlasConfiguration.asset",FilePathAttribute.Location.ProjectFolder)]
|
|
public class AtlasConfiguration : ScriptableSingleton<AtlasConfiguration>
|
|
{
|
|
[Header("Directory Settings")]
|
|
public string atlasOutputPath = "Assets/Art/Atlas";
|
|
public string rawUIPath = "Assets/Art/UI/Raw";
|
|
public string uiAtlasPath = "Assets/Art/UI/Atlases";
|
|
|
|
[Header("Texture Settings")]
|
|
public TextureImporterFormat androidFormat = TextureImporterFormat.ASTC_6x6;
|
|
public TextureImporterFormat iosFormat = TextureImporterFormat.ASTC_5x5;
|
|
public TextureImporterFormat webglFormat = TextureImporterFormat.ASTC_6x6;
|
|
public int compressionQuality = 50;
|
|
|
|
[Header("Packing Settings")]
|
|
public int padding = 2;
|
|
public bool enableRotation = true;
|
|
public int blockOffset = 1;
|
|
}
|