quality-control/Assets/Scripts/Editor/TexturePreprocessor.cs

12 lines
308 B
C#
Raw Permalink Normal View History

using UnityEngine;
using UnityEditor;
class TexturePreprocessor : AssetPostprocessor
{
void OnPreprocessTexture()
{
// if (assetPath.Contains("_bumpmap"))
TextureImporter textureImporter = (TextureImporter)assetImporter;
textureImporter.filterMode = FilterMode.Point;
}
}