using UnityEditor;
public class ImageAutoSetting : AssetPostprocessor
{
void OnPreprocessTexture()
{
if (assetPath.IndexOf("Assets/Raw/UI/Eliminate/Icon") >= 0)
{
TextureImporter textureImporter = (TextureImporter)assetImporter;
textureImporter.textureType = TextureImporterType.Sprite;
textureImporter.spritePackingTag = "eliminate_icon";
textureImporter.spritePixelsPerUnit = 110f;
}
}
}