You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
我有一个partial class 部分代码是在Editor下条件编译的,但是整个类打上hotfix标签后Generate Code后将许多Editor下用的类导出到了DelegateBridge,我看了下主要是Editor下用的部分函数的返回值用到了Editor下专用的类。我尝试给这些函数加上blacklist也无法使其不生成,不知道有没有什么好办法?
Activity
chexiongsheng commentedon Nov 8, 2018
https://github.com/Tencent/xLua/blob/master/Assets/XLua/Doc/faq.md#%E4%BD%BF%E7%94%A8%E7%83%AD%E8%A1%A5%E4%B8%81%E7%89%B9%E6%80%A7%E6%89%93%E6%89%8B%E6%9C%BA%E7%89%88%E6%9C%AC%E6%97%B6%E6%8A%A5delegatesgensbridgecs%E5%BC%95%E7%94%A8%E4%BA%86%E4%B8%8D%E5%AD%98%E5%9C%A8%E7%9A%84%E7%B1%BB%E6%AF%94%E5%A6%82%E4%BB%85%E7%BC%96%E8%BE%91%E5%99%A8%E4%BD%BF%E7%94%A8%E7%9A%84%E7%B1%BB%E5%9E%8B%E5%BA%94%E8%AF%A5%E5%A6%82%E4%BD%95%E5%A4%84%E7%90%86
leechking1987 commentedon Nov 8, 2018
这是因为Hotfix列表里头配置的类型(假设是类型A),对这些不存在的类型(假设是类型B)引用。找到这种类型,从Hotfix配置列表中排除(注意,排除的类型A,而不是类型B)。
我明白直接排除掉A就可以解决报错,但是我现在想A的正常代码可以被hotfix,但是Editor的部分不需要生成。也就是说A需要在Hotfix的配置列表中,但是A的某些函数不需要hotfix,也不需要生成到DelegateBridge,这个可以做到吗?
chexiongsheng commentedon Nov 8, 2018
不支持。
leechking1987 commentedon Nov 8, 2018
好的,非常感谢,我想想其他办法