Пример #1
0
 static string[] GatherDependenciesFromSourceFile(string assetPath)
 {
     try
     {
         return(MinimalGraphData.GetDependencyPaths(assetPath));
     }
     catch (Exception e)
     {
         Debug.LogException(e);
         return(new string[0]);
     }
 }
Пример #2
0
 static void GatherDependencies(string assetPath, Dictionary <string, string[]> dependencyMap, List <string> dependencies)
 {
     if (!dependencyMap.ContainsKey(assetPath))
     {
         MinimalGraphData.GetDependencyPaths(assetPath, dependencies);
         var dependencyPaths = dependencyMap[assetPath] = dependencies.ToArray();
         dependencies.Clear();
         foreach (var dependencyPath in dependencyPaths)
         {
             GatherDependencies(dependencyPath, dependencyMap, dependencies);
         }
     }
 }
 static string[] GatherDependenciesFromSourceFile(string assetPath)
 {
     return(MinimalGraphData.GetDependencyPaths(assetPath));
 }