LuaFramework_UGUI_V2 icon indicating copy to clipboard operation
LuaFramework_UGUI_V2 copied to clipboard

基于tolua的热更新框架V2

Results 23 LuaFramework_UGUI_V2 issues
Sort by recently updated
recently updated
newest added

如题, 此框架 目前唯一缺点 ,如果工程大,加载与更新资源时间长,加载与更新的界面如果使用的 c# 写死,意味着 加载 与 更新界面无法进行热更新 我在其他大型仙侠3D手游源码看的 tolua 热更新原理, 整个 c# 就调用 一个 lua 文件作为入口,其他一切热更新 全部采用 lua ,包括 加载界面 与 更新界面,更新完成 自动重载 所有lua 并且重新显示新的 界面 加载一次,由于 此游戏工程过于庞大...

![报错](https://user-images.githubusercontent.com/23716398/117847369-cf115400-b271-11eb-85a4-2f37142050c3.png) 在安卓11的机器上,当targetsdkversion为30的时候就会初始化报错,30以下正常, 想问下,最新版本有修复这个问题吗

在处理ParticleSystem中GetParticles(NativeArray particles)方法时报空。去除ParticleSystem后生成成功。 自己加的log: GetElementType is null type:Unity.Collections.NativeArray`1[UnityEngine.ParticleSystem+Particle] UnityEngine.Debug:LogFormat (string,object[]) ToLuaExport/_MethodBase:GenParamTypes (int) (at Assets/LuaFramework/ToLua/Editor/ToLuaExport.cs:299) ToLuaExport:GenOverrideFuncBody (ToLuaExport/_MethodBase,bool,int) (at Assets/LuaFramework/ToLua/Editor/ToLuaExport.cs:2779) ToLuaExport:GenOverrideFunc (string) (at Assets/LuaFramework/ToLua/Editor/ToLuaExport.cs:2899) ToLuaExport:GenFunctions () (at Assets/LuaFramework/ToLua/Editor/ToLuaExport.cs:1573) ToLuaExport:Generate (string) (at Assets/LuaFramework/ToLua/Editor/ToLuaExport.cs:788) ToLuaMenu:GenerateClassWraps...

使用的是2019.1.2f1版本,Build Mac平台资源是依然报错 Assets/LuaFramework/ToLua/Source/Generate/UnityEngine_LightWrap.cs(101,8): error CS1061: 'Light' does not contain a definition for 'SetLightDirty' and no accessible extension method 'SetLightDirty' accepting a first argument of type 'Light' could be found (are...

System.ArgumentNullException: Value cannot be null. at System.RuntimeType.MakeGenericType (System.Type[] instantiation) [0x00069] in :0 at ToLuaExport+_MethodBase.GenParamTypes (System.Int32 offset) [0x00094] in D:\other\Desktop\LuaFramework_UGUI_V2-master\Assets\LuaFramework\ToLua\Editor\ToLuaExport.cs:298 at ToLuaExport.GenOverrideFuncBody (ToLuaExport+_MethodBase md, System.Boolean beIf, System.Int32 checkTypeOffset) [0x0012e] in D:\other\Desktop\LuaFramework_UGUI_V2-master\Assets\LuaFramework\ToLua\Editor\ToLuaExport.cs:2777...

原 for (int i = list.Count - 1; i > 0; i--),应该改成: for (int i = list.Count - 1; i >= 0; i--)

_env_new报错 E/Unity: LuaException: bad light userdata pointer stack traceback: [C]: in function '_env_new' engine.protobuf:33: in main chunk [C]: in function 'DoRequire' local P = c._env_new() local GC = c._gc(P)

框架已经弃更了吗?

![image](https://user-images.githubusercontent.com/24500684/85203582-5d6ea580-b341-11ea-8872-f822a96c0bb6.png)

大部分的报错应该是unity官方改了某些类方法或者变量的使用权限,我用的unity 2019.2.41f版本,会有四个报错,根据报错查unity api发现权限都改成了editor only,无法使用,所以我直接在ToLuaExport.cs中的memberFilter 列表中添加了需要屏蔽导出的字段或者方法,作者此前已经有一些过滤的方法,添加之后就没有报错了 `//unity 新版本新增屏蔽 2019.2.41f "Light.SetLightDirty", "MeshRenderer.receiveGI", "MeshRenderer.receiveGI", "QualitySettings.streamingMipmapsRenderersPerFrame",`