场景:unity需要把一些lua打在包内时(例如:ios上架商店过审),遇到;
解决方法:在LuaManager.InitLuaPath内加
lua.AddSearchPath(Application.streamingAssetsPath + "/lua");
原因大概是:一般用lua热更,默认搜索路径没添加包内的;
场景:unity需要把一些lua打在包内时(例如:ios上架商店过审),遇到;
解决方法:在LuaManager.InitLuaPath内加
lua.AddSearchPath(Application.streamingAssetsPath + "/lua");
原因大概是:一般用lua热更,默认搜索路径没添加包内的;