Files

17 lines
507 B
C#

using UnityEditor;
using UnityEngine;
namespace Editor
{
public class SetTextureSeting: AssetPostprocessor
{
private void OnPreprocessTexture() {
TextureImporter textureImporter = (TextureImporter)assetImporter;
textureImporter.textureType = TextureImporterType.Sprite;
textureImporter.isReadable = true;
textureImporter.filterMode = FilterMode.Point;
textureImporter.spriteImportMode = SpriteImportMode.Single;
}
}
}