-
Notifications
You must be signed in to change notification settings - Fork 438
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
UnityEngine导出文件放到Plugins后会引起扩展方法找不到的问题 #103
Comments
嗯,该了目录结构,这到是个问题了:( |
我刚才看到5.2.3发布了,貌似修复UNetWeaver的bug |
你可以考虑revert之前的目录结构,就不存在这个问题了 |
我把generate code path改回到了之前的目录。 5.2.3 的release note里好像没看到关于UNetWeaver那个问题的说明? |
Networking: Fixed code generation execption when using certain build-in unity types ... 这个估计是个fix,猜的 |
还有一个问题: Plugins/Editor 应该只能识别这个一级目录? |
@wlgys8 I think this document is good reference Phase 1 is compiled to Assembly-CSharp-firstpass.dll this files is possibly checked in specific folder {UNITY_PROJECT}/Library/ScriptAssemblies/ |
@Salada We can not access SpriteExt.cs in Lua_UnityEngine_Sprite.cs. |
If want to use method extensions by class in UnityEngine.dll, I think need to 2 bind load phase and codegen phase. but changelist expect too many. and i have just idea. not attempt to implement this feature yet. I turn off feature about extensions method in SLuaSetting.asset, couldn't catch this problem :( I think Editor folder need to be located in /Editor not in /Plugins/Editor, Assembly-CSharp-Editor-firstpass.dll cannot access Assembly-CSharp.dll. then your needs is accomplished. |
@Salada |
If put folder
Should move folder |
ok |
例如对Sprite定义了一些扩展方法放到文件 SpriteExt.cs 中。
这个SpriteExt.cs是在
Assembly-CSharp
中的,而Lua_UnityEngine_Sprite是在Assembly-CSharp-firstpass
中,引用不到SpriteExt.csThe text was updated successfully, but these errors were encountered: