12345678910111213141516171819 |
- using UnityEditor;
- namespace GFGEditor
- {
- public class TextureImporterSetting : AssetPostprocessor
- {
- void OnPreprocessTexture()
- {
- TextureImporter textureImporter = assetImporter as TextureImporter;
- if (textureImporter != null)
- {
- if(textureImporter.assetPath.StartsWith("Assets/Res/") || textureImporter.assetPath.StartsWith("Assets/ResIn/"))
- {
- TextureAutoSet.ChangeTextureSetting(textureImporter);
- }
- }
- }
- }
- }
|