using UnityEditor;using UnityEngine;using System.IO;using System.Collections;using System.Collections.Generic;publicclassModifyMoidel:Editor{
[MenuItem("BenBen/修改模型ModelScal")]publicstaticvoidModifyMoidelScale(){
List<string> paths =newList<string>();foreach(Object o in Selection.GetFiltered(typeof(Object), SelectionMode.Assets)){
Debug.Log(o.name);//非对象不继续if(!(o is GameObject))continue;//将o作为模型存储在mod中//Debug.LogWarning(o.name);GameObject mod = o as GameObject;//将mod模型路径存储在path中string path = AssetDatabase.GetAssetPath(mod);ModelImporter modelimporter = ModelImporter.GetAtPath(path)as ModelImporter;if(!modelimporte