private static void CheckSelected() { string path = AssetDatabase.GetAssetPath(Selection.activeInstanceID); if (path.IndexOf(".prefab") != -1) { GameObject go = AssetDatabase.LoadAssetAtPath(path, typeof(GameObject)) as GameObject; if (go != null) { CheckGameObject(go, path); AssetDatabase.SaveAssets(); EditorUtility.DisplayDialog("Localization Check", "预设\n【" + go.name + "】\n检测完毕!!", "朕已阅"); } } else { EditorCoroutine.StartCoroutine(CheckByPath(path)); } }
public static void Check() { EditorCoroutine.StartCoroutine(LocalizationDataHelper.ReadConfig(), CheckSelected); }