TextureImporterSetting .cs 394 B

12345678910111213141516
  1. using UnityEditor;
  2. namespace GFGEditor
  3. {
  4. public class TextureImporterSetting : AssetPostprocessor
  5. {
  6. void OnPreprocessTexture()
  7. {
  8. TextureImporter textureImporter = assetImporter as TextureImporter;
  9. if (textureImporter != null)
  10. {
  11. TextureAutoSet.ChangeTextureSetting(textureImporter);
  12. }
  13. }
  14. }
  15. }