We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Unity升级到2019.4.10f1之后, Injection功能在Editor状态生效,打PC包和安卓包之后不生效 查找到原因: Unity2019版本在打包之后会在library目录下生成PlayerScriptAssemblies临时目录存放原来ScriptAssemblies下的dll,导致Injection不生效 尝试修改: 1.将Inject路径修改为PlayerScriptAssemblies,不生效 2.InjectAll之后调用EditorUtility.RequestScriptReload(),Inject成功了但是包体闪退了,反编译dll之后查看发现打包之后生成的方法体和Editor下生成的不一样,会有一个Discarded unreachable code的提示,还有一些Error导致闪退;
xLua也有同样的问题 Tencent/xLua#691 Tencent/xLua#732 Tamsiree/xLua@799a4fe Tencent/InjectFix#331
The text was updated successfully, but these errors were encountered:
2019后自行实现IPostBuildPlayerScriptDLLs 接口,在OnPostBuildPlayerScriptDLLs回调里面inject实际平台的dll
Sorry, something went wrong.
No branches or pull requests
Unity升级到2019.4.10f1之后, Injection功能在Editor状态生效,打PC包和安卓包之后不生效
![1](https://user-images.githubusercontent.com/25601281/148156481-9c6928f8-5634-4ba7-9be0-415fe9aa1295.png)
查找到原因:
Unity2019版本在打包之后会在library目录下生成PlayerScriptAssemblies临时目录存放原来ScriptAssemblies下的dll,导致Injection不生效
尝试修改:
1.将Inject路径修改为PlayerScriptAssemblies,不生效
2.InjectAll之后调用EditorUtility.RequestScriptReload(),Inject成功了但是包体闪退了,反编译dll之后查看发现打包之后生成的方法体和Editor下生成的不一样,会有一个Discarded unreachable code的提示,还有一些Error导致闪退;
xLua也有同样的问题
Tencent/xLua#691
Tencent/xLua#732
Tamsiree/xLua@799a4fe
Tencent/InjectFix#331
The text was updated successfully, but these errors were encountered: