Skip to content

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

Description

@ikakumon

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

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions