Search Unity

Please make unity UI inputfield better in webgl

Discussion in 'Web' started by ThainaYu, Mar 26, 2017.

  1. ThainaYu

    ThainaYu

    Joined:
    Nov 4, 2016
    Posts:
    18
    WebGL inputfield is seriously have bug for so long

    I think one way we could hack around is, make unity UI for webgl sync with underlying hidden html textbox

    And whenever any unity UI textfield was focused, that textbox would be focused in html instead of unity. Then any text typed there would be sync with unity textbox instead, by onChangedListender of HTML

    But as I said, it need to be built in
     
  2. jRocket

    jRocket

    Joined:
    Jul 12, 2012
    Posts:
    700
    Unity in WebGL is all in a canvas element. There is no underlying html textbox. The system you are describing could certainly be done by interacting between the javascript and unity, but it doesn't have to be built into Unity.
     
  3. ThainaYu

    ThainaYu

    Joined:
    Nov 4, 2016
    Posts:
    18
    @jRocket If it could then it should. Because as I said, Unity input field has so many many many bug that don't work as intended. It cannot copied and pasted from and to outside. It cannot type character in other language but english. And everyone work with unity UI should have this bug fixed