C# 클래스 QFrameworkLua.LuaLoader

集成自LuaFileUtils,重写里面的ReadFile,
상속: LuaInterface.LuaFileUtils
파일 보기 프로젝트 열기: liangxiegame/QFramework 1 사용 예제들

공개 메소드들

메소드 설명
AddBundle ( string bundleName ) : void

添加打入Lua代码的AssetBundle

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

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

메소드 상세

AddBundle() 공개 메소드

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

LuaLoader() 공개 메소드

public LuaLoader ( ) : UnityEngine
리턴 UnityEngine

ReadFile() 공개 메소드

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