Table of Contents

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 AssetBundle
files 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

path string
extension string

Returns

IEnumerable<string>

FileExists(string)

public override bool FileExists(string path)

Parameters

path string

Returns

bool

GetFileAttributes(string)

public override AssetAttributes GetFileAttributes(string path)

Parameters

path string

Returns

AssetAttributes

GetFileContentsHash(string)

Returns SHA256 based on the file contents.

public override SHA256 GetFileContentsHash(string path)

Parameters

path string

Returns

SHA256

GetFileOriginHash(string)

Returns SHA256 that was passed to the ImportFile or ImportFileRaw methods.

public override SHA256 GetFileOriginHash(string path)

Parameters

path string

Returns

SHA256

GetFileSize(string)

public override int GetFileSize(string path)

Parameters

path string

Returns

int

GetFileUnpackedSize(string)

public override int GetFileUnpackedSize(string path)

Parameters

path string

Returns

int

OpenFile(string, FileMode)

public override Stream OpenFile(string path, FileMode fileMode = FileMode.Open)

Parameters

path string
fileMode FileMode

Returns

Stream

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)

Parameters

path string
fileMode FileMode

Returns

Stream