public static string FindReferencesToGUID(string guid) { var dependencies = GetDependenciesToGUID(guid); if (dependencies.Count == 0) { return("No dependencies found"); } CheckListWindow.Show(dependencies); return(dependencies.Count + " dependencies found"); }
public static string FindReferencesToAsset(string path) { var dependencies = GetDependenciesToAsset(path); if (dependencies.Count == 0) { return("No dependencies found"); } CheckListWindow.Show(dependencies); return(dependencies.Count + " dependencies found"); }
private static void OpenViewer(MenuCommand menuCommand) { string assetPath = AssetDatabase.GetAssetPath(Selection.activeObject); var dependencies = GetDependenciesToAsset(assetPath); if (dependencies.Count == 0) { Debug.Log("No dependencies found"); } CheckListWindow.Show(dependencies); }