Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

从2017 升级到2021,gencode 生成enumwrap.cs 报错XLua\Gen\EnumWrap.cs(45,14): error CS1003: Syntax error, '(' expected #1102

Open
zgsmilehappy opened this issue Dec 9, 2023 · 0 comments

Comments

@zgsmilehappy
Copy link

仔细跟进了一下,发现是因为

1702119709941
type:GetFields 返回的是空数组,调试日志如下:
1702119813605
然后在仔细跟进了一下,应该是:
1702119940820
zh
这里设置了所有wrap 的 enum list, 在上面的lua代码中遍历types 获取type,但是GetFields()返回空数组,是不是unity版本升级导致C#版本也升级了,然后之前的xlua版本不兼容么? xlua版本为:
1702120170618

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant