fairygui / FairyGUI-unity

A flexible UI framework for Unity
https://fairygui.com
MIT License
2.68k stars 636 forks source link

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

Open ikakumon opened 5 months ago

ikakumon commented 5 months ago

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

xiaoguzhu commented 5 months ago

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