Desarrollo de juegos Unity Editor Extended Knowledge Series: Modify TextureType of Texture Resources

Necesita usar TextureImporter para importar recursos, llame al siguiente código

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

 

Supongo que te gusta

Origin blog.csdn.net/qq1090504117/article/details/111599423
Recomendado
Clasificación