Class CustomSetAssetBundle
- Namespace
- Lime
- Assembly
- Lime.dll
Asset bundle which substitutes enumeration results with the given list of files. All file operations will throw FileNotFoundException if provided file path does not exist in provided list of files.
public class CustomSetAssetBundle : WrappedAssetBundle, IDisposable
- Inheritance
-
CustomSetAssetBundle
- Implements
- Inherited Members
Constructors
CustomSetAssetBundle(AssetBundle, IEnumerable<string>)
public CustomSetAssetBundle(AssetBundle bundle, IEnumerable<string> files)
Parameters
bundle
AssetBundlefiles
IEnumerable<string>
Methods
DeleteFile(string)
public override void DeleteFile(string path)
Parameters
path
string
EnumerateFiles(string, string)
Enumerates all files by given path and having the given extension. Order is specific to implementation.
public override IEnumerable<string> EnumerateFiles(string path = null, string extension = null)
Parameters
Returns
FileExists(string)
public override bool FileExists(string path)
Parameters
path
string
Returns
GetFileAttributes(string)
public override AssetAttributes GetFileAttributes(string path)
Parameters
path
string
Returns
GetFileContentsHash(string)
Returns SHA256 based on the file contents.
public override SHA256 GetFileContentsHash(string path)
Parameters
path
string
Returns
GetFileOriginHash(string)
Returns SHA256 that was passed to the ImportFile or ImportFileRaw methods.
public override SHA256 GetFileOriginHash(string path)
Parameters
path
string
Returns
GetFileSize(string)
public override int GetFileSize(string path)
Parameters
path
string
Returns
GetFileUnpackedSize(string)
public override int GetFileUnpackedSize(string path)
Parameters
path
string
Returns
OpenFile(string, FileMode)
public override Stream OpenFile(string path, FileMode fileMode = FileMode.Open)
Parameters
Returns
OpenFileRaw(string, FileMode)
Returns file data as it stored in the asset bundle, e.g. compressed.
public override Stream OpenFileRaw(string path, FileMode fileMode = FileMode.Open)