com.alicizax.unity.editor.e.../Editor/Postprocessor/Atlas/AtlasConfiguration.cs
2025-03-11 17:46:52 +08:00

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;
}