using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;


/// <summary>
/// 当前资源导入前
/// </summary>
public class TextTrueSetting : AssetPostprocessor {

private void OnPreprocessTexture()
{
TextureImporter importer = (TextureImporter)assetImporter;
//所有导入图片设置为当前类型
importer.textureType = TextureImporterType.Sprite;
}
}