示例#1
0
 public static string[] GetDependencies(string[] pathNames)
 {
     return(AssetDatabase.GetDependencies(pathNames, true));
 }
示例#2
0
 /// <summary>
 ///   <para>Given a pathName, returns the list of all assets that it depends on.</para>
 /// </summary>
 /// <param name="pathName">The path to the asset for which dependencies are required.</param>
 /// <param name="recursive">If false, return only assets which are direct dependencies of the input; if true, include all indirect dependencies of the input. Defaults to true.</param>
 /// <returns>
 ///   <para>The paths of all assets that the input depends on.</para>
 /// </returns>
 public static string[] GetDependencies(string pathName, bool recursive)
 {
     return(AssetDatabase.GetDependencies(new string[1] {
         pathName
     }, recursive));
 }