コード例 #1
0
 /// <summary>
 /// Checks if <see cref="ResourceMap" /> should include the asset at the specified path.
 /// </summary>
 public static bool IncludeAssetAtPath(string path)
 {
     return(
         ResourceMap.IsResourcePath(path) &&
         !path.Contains("/Editor/") &&
         !Directory.Exists(path) &&
         !Regex.IsMatch(path, @"[a-z0-9]{32}\.asset$") &&
         !Regex.IsMatch(path, @".cs$")
         );
 }