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