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

Unity2019.4.39的webgl打包后,WebGLTextInputSetText报错 #225

Open
ikakumon opened this issue May 20, 2024 · 1 comment
Open

Unity2019.4.39的webgl打包后,WebGLTextInputSetText报错 #225

ikakumon opened this issue May 20, 2024 · 1 comment

Comments

@ikakumon
Copy link

WebGLTextInput.jslib第十行
canvasEle = document.getElementById('unity-canvas');貌似Unity2020前的版本这个id不同
增加以下内容应该就可以了
if(canvasEle == null ){
canvasEle = document.getElementById('unityContainer');
}
我只测了Unity2019.4.39的不知道其他版本行不行,不敢pullRequest

@xiaoguzhu
Copy link
Member

这个可能各个unity版本有差异,所以自己改改就是了

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

2 participants