コード例 #1
0
    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");
    }
コード例 #2
0
    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");
    }
コード例 #3
0
    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);
    }