Example #1
0
 static public byte[] GetBytes(this AssetInfo item)
 {
     return(File.ReadAllBytes(item.GetPath()));
 }
Example #2
0
 static public DateTime GetTimestamp(this AssetInfo item)
 {
     return(Files.GetFileTimestamp(item.GetPath()));
 }
Example #3
0
 static public string GetText(this AssetInfo item)
 {
     return(File.ReadAllText(item.GetPath()));
 }
Example #4
0
 static public string GetDirectory(this AssetInfo item)
 {
     return(Filename.GetDirectory(item.GetPath()));
 }
Example #5
0
 static public string GetExtension(this AssetInfo item)
 {
     return(Filename.GetExtension(item.GetPath()));
 }
Example #6
0
 static public bool IsDependentOn(this AssetInfo item, AssetInfo dependency)
 {
     return(item.IsDependentOnPath(dependency.GetPath()));
 }
Example #7
0
 static public void Delete(this AssetInfo item)
 {
     AssetDatabase.DeleteAsset(item.GetPath());
 }
Example #8
0
 static public IEnumerable <string> GetDependencyPaths(this AssetInfo item, bool recursive)
 {
     return(AssetDatabase.GetDependencies(item.GetPath(), recursive));
 }