Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. 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:
    953
    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