Exemple #1
0
        static public void ModifyAssetImporter(this UnityEngine.Object item, Process <SerializedObject> process)
        {
            AssetImporter importer = item.GetAssetImporter();

            importer.ModifyAsset(process);

            importer.Reserialize();
            importer.SaveAndReimport();
        }
Exemple #2
0
 static public T GetAssetImporter <T>(this UnityEngine.Object item) where T : AssetImporter
 {
     return(item.GetAssetImporter().Convert <T>());
 }