CTT/Unity/Assets/Editor/Assistent/Misc/AssetImportSetting.cs

17 lines
348 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
namespace ETEditor
{
public class AssetImportSetting : AssetPostprocessor
{
private void OnPreprocessTexture()
{
TextureImporter importer = assetImporter as TextureImporter;
importer.textureType = TextureImporterType.Sprite;
}
}
}