C# Class KEngine.AssetBundleLoader

Inheritance: AbstractResourceLoader
Datei anzeigen Open project: mr-kelly/KEngine Class Usage Examples

Public Properties

Property Type Description
AssetBundlerLoaderErrorEvent Action
NewAssetBundleLoaderEvent Action

Public Methods

Method Description
Load ( string url, CAssetBundleLoaderDelegate callback = null, LoaderMode loaderMode = LoaderMode.Async ) : AssetBundleLoader

AssetBundle读取原字节目录

Release ( ) : void

Protected Methods

Method Description
DoDispose ( ) : void
Init ( string url ) : void
OnFinish ( object resultObj ) : void

Private Methods

Method Description
LoadAssetBundle ( string relativeUrl ) : IEnumerator
PreLoadManifest ( ) : void

Unity5下,使用manifest进行AssetBundle的加载

Method Details

DoDispose() protected method

protected DoDispose ( ) : void
return void

Init() protected method

protected Init ( string url ) : void
url string
return void

Load() public static method

AssetBundle读取原字节目录
public static Load ( string url, CAssetBundleLoaderDelegate callback = null, LoaderMode loaderMode = LoaderMode.Async ) : AssetBundleLoader
url string
callback CAssetBundleLoaderDelegate
loaderMode LoaderMode
return AssetBundleLoader

OnFinish() protected method

protected OnFinish ( object resultObj ) : void
resultObj object
return void

Release() public method

public Release ( ) : void
return void

Property Details

AssetBundlerLoaderErrorEvent public_oe static_oe property

public static Action AssetBundlerLoaderErrorEvent
return Action

NewAssetBundleLoaderEvent public_oe static_oe property

public static Action NewAssetBundleLoaderEvent
return Action