Esempio n. 1
0
    static List <string> GetSearchAssetPaths(string[] searchPaths)
    {
        List <string> result = new List <string>();

        string[] allPaths = AssetDatabase.GetAllAssetPaths();

        foreach (string p in allPaths)
        {
            bool isContain = ListUtility.IsAnyElementSatisfied(searchPaths, (string searchPath) => {
                return(p.Contains(searchPath));
            });

            if (isContain)
            {
                result.Add(p);
            }
        }

        return(result);
    }