jarjin / LuaFramework_UGUI_V2

基于tolua的热更新框架V2
619 stars 170 forks source link

Unity 2019.1.2f1 Light SetLightDirty #21

Open keltonxian opened 5 years ago

keltonxian commented 5 years ago

使用的是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 you missing a using directive or an assembly reference?) 和 Assets/LuaFramework/ToLua/Source/Generate/UnityEngine_QualitySettingsWrap.cs(1107,4): error CS0200: Property or indexer 'QualitySettings.streamingMipmapsRenderersPerFrame' cannot be assigned to -- it is read only 如果单纯注释掉绑定的话,那lua就用不了这两个类吧,请问有没有什么其他解决方案呢?

franklzt commented 4 years ago

这个API 的说明,这是个 Editor Only 的API。 要想用的话就降 Unity 版本吧。

missli93 commented 3 years ago

ToLuaExport.cs 里面 名为 memberFilter 的列表里添加不想要导出的方法

peiyumo commented 3 years ago

我也遇到这个报错, 有点奇怪,有时候可以编译通过,有时候却不行,两台电脑用的相同的unity版本2018.4.9;去看之前的生成结果,也没做什么特殊处理啊