mirror of
				https://github.com/nothke/quality-control.git
				synced 2025-10-31 08:35:55 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			308 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			308 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using UnityEngine;
 | |
| using UnityEditor;
 | |
| 
 | |
| class TexturePreprocessor : AssetPostprocessor
 | |
| {
 | |
|     void OnPreprocessTexture()
 | |
|     {
 | |
|         // if (assetPath.Contains("_bumpmap"))
 | |
|         TextureImporter textureImporter = (TextureImporter)assetImporter;
 | |
|         textureImporter.filterMode = FilterMode.Point;
 | |
|     }
 | |
| } |