C# Class KEngine.AssetFileLoader

根據不同模式,從AssetBundle中獲取Asset或從Resources中獲取,两种加载方式同时实现的桥接类 读取一个文件的对象,不做拷贝和引用
Inheritance: AbstractResourceLoader
Show file Open project: mr-kelly/KEngine Class Usage Examples

Public Methods

Method Description
Load ( string path, AssetFileBridgeDelegate assetFileLoadedCallback = null, LoaderMode loaderMode = LoaderMode.Async ) : AssetFileLoader
RefreshMaterialsShaders ( Renderer renderer ) : void

编辑器模式下,对指定GameObject刷新一下Material

Protected Methods

Method Description
DoDispose ( ) : void
Init ( string url ) : void

Private Methods

Method Description
_Init ( string path, LoaderMode loaderMode ) : IEnumerator

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

public static Load ( string path, AssetFileBridgeDelegate assetFileLoadedCallback = null, LoaderMode loaderMode = LoaderMode.Async ) : AssetFileLoader
path string
assetFileLoadedCallback AssetFileBridgeDelegate
loaderMode LoaderMode
return AssetFileLoader

RefreshMaterialsShaders() public static method

编辑器模式下,对指定GameObject刷新一下Material
public static RefreshMaterialsShaders ( Renderer renderer ) : void
renderer UnityEngine.Renderer
return void