//可视化使用 public static void FindFolderDependentByArtToolsWindow(string path) { string dstAssetPath = FindReferences.GetRelativeAssetsPath(path); refDic = FindAllFolderDependent(path, dstAssetPath); Finddependent window = (Finddependent)EditorWindow.GetWindow(typeof(Finddependent)); window.Show(); }
//可视化使用 public static void FindAssetDependentByArtToolsWindow(string path) { if (string.IsNullOrEmpty(path)) { EditorUtility.DisplayDialog("查找依赖", "请选中你要查找的资源", "确定"); return; } string[] a = GetAssetDependencies(path); if (a == null) { EditorUtility.DisplayDialog("查找依赖", "你要查找的资源不存在", "确定"); return; } refDic.Clear(); refDic.Add(path, a); Finddependent window = (Finddependent)EditorWindow.GetWindow(typeof(Finddependent)); window.Show(); }