Game Development Unity Editor Extended Knowledge Series: Modify TextureType of Texture Resources

Need to use TextureImporter to import resources, call the following code

TextureImporter importer = (TextureImporter)TextureImporter.GetAtPath(path);
importer.textureType = TextureImporterType.Sprite;
AssetDatabase.Refresh();

 

Guess you like

Origin blog.csdn.net/qq1090504117/article/details/111599423