Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Webgl game wont show good resolution when viewed on mobile devices & keyboard issue

Discussion in 'Web' started by slaga, Oct 13, 2020.

  1. slaga

    slaga

    Joined:
    Dec 3, 2018
    Posts:
    142
    And for some reason my input field wont make the keyboard appear!

    So hello! i am making a small game , endless runner style with a mysqli database connection on game over.Although on desktop it has a nice crisp resolution on android where the device automaticaly goes full screen and landscape mode i get bars on the side of the game and a big loss of quality. is there something i can do to fix that? also in case anyone knows something about the text form that wont show my keyboard?
     
  2. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    951
    Try removing the line "config.devicePixelRatio = 1;" in the generated index.html

    Virtual keyboards are currently not supported in Unity mobile builds. You can try building a JavaScript plugin that brings up the keyboard to see if that helps the problem. (I am not sure if it will be able to actually input - have not had a chance to try out the state of virtual keyboard support)
     
    slaga likes this.
  3. slaga

    slaga

    Joined:
    Dec 3, 2018
    Posts:
    142
    thank you for your reply. and for the keyboard so after game build open the index.html and add a javascript keyboard pop up right? hmm will try it out thank you again