Skip to content

Unity2018 Build 报错 #427

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

Closed
dongweiPeng opened this issue Jul 30, 2018 · 4 comments
Closed

Unity2018 Build 报错 #427

dongweiPeng opened this issue Jul 30, 2018 · 4 comments

Comments

@dongweiPeng
Copy link

dongweiPeng commented Jul 30, 2018

Assets/XLua/Gen/UnityEngineLightWrap.cs(1042,35): error CS1061: Type UnityEngine.Light' does not contain a definition for shadowAngle' and no extension method shadowAngle' of type UnityEngine.Light' could be found. Are you missing an assembly reference?

Assets/XLua/Gen/UnityEngineLightWrap.cs(1027,35): error CS1061: Type UnityEngine.Light' does not contain a definition for shadowRadius' and no extension method shadowRadius' of type UnityEngine.Light' could be found. Are you missing an assembly reference?

看了下生成的Wrap文件是有shadowAngle 和 shadowRadius 的。求大神帮忙看下
版本:2018.1.0f2
环境:Android平台打包

@chexiongsheng
Copy link
Collaborator

配置黑名单

@dongweiPeng
Copy link
Author

ok 感谢

@flowerdog
Copy link

配置黑名单

遇到类似问题, 请问一下是什么原理呢? Play的时候没有报错,在Build的时候报错。

@chexiongsheng
Copy link
Collaborator

配置黑名单

遇到类似问题, 请问一下是什么原理呢? Play的时候没有报错,在Build的时候报错。

生成代码在Editor,所以会UNITY_EDITOR宏框住的函数也生成了。

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

3 participants