C# Class LuaFramework.LuaLoader

集成自LuaFileUtils,重写里面的ReadFile,
Inheritance: LuaInterface.LuaFileUtils
Exibir arquivo Open project: guyun008/LuaFramework_ngui_mod Class Usage Examples

Public Methods

Method Description
AddBundle ( string bundleName ) : void

添加打入Lua代码的AssetBundle

LuaLoader ( ) : UnityEngine
ReadFile ( string fileName ) : byte[]

当LuaVM加载Lua文件的时候,这里就会被调用, 用户可以自定义加载行为,只要返回byte[]即可。

Method Details

AddBundle() public method

添加打入Lua代码的AssetBundle
public AddBundle ( string bundleName ) : void
bundleName string
return void

LuaLoader() public method

public LuaLoader ( ) : UnityEngine
return UnityEngine

ReadFile() public method

当LuaVM加载Lua文件的时候,这里就会被调用, 用户可以自定义加载行为,只要返回byte[]即可。
public ReadFile ( string fileName ) : byte[]
fileName string
return byte[]