• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by Cloudmaking0 · Aug 17, 2020 at 05:49 PM · webgl

Unity Text Input Field not working in WebGL build

hello everyone, I need some help, I have been trying to fix t$$anonymous$$s problem for weeks. the input field I have for getting username for my leader board will not let anyone type inside it. at first, I thought it was the leader board itself, so I basically went through my game and got rid of any warnings and error, turns out the leader board is working fine. its the input field. at t$$anonymous$$s point I have no idea what to do, please help. for reference, everyt$$anonymous$$ng works fine in the PC build and inside unity.

link for the game is bellow, PLEASE PLEASE PLEASE HELP!!

https://connect.unity.com/mg/other/fourth-wall-v1-3-1

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jtiret · Dec 14, 2020 at 10:10 PM 0
Share

Hello @Cloudmaking0,

Have you eventually figured out how to fix the problem? I'm having the same issue… :(

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by EvanBindz · Jul 15, 2021 at 07:20 PM

I was able to get WebGL text input working on mobile by implementing https://github.com/kou-yeung/WebGLInput

Note that the text was oversized w$$anonymous$$le typing on mobile but it does work. Not sure how to fix the size issue.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image crafTDev · Nov 07, 2021 at 02:02 AM 0
Share

This says it doesn't work with iOS default web browser Safari which makes it kind of useless, unfortunately!

avatar image Sandaga · Nov 08, 2021 at 05:29 AM 0
Share

Hello. May be able to help you. I had the same problem when I used "TextMeshPro-InputField". Open the "WebGLInput.cs" file for this asset. Edit the OnSelect() method. var fontSize = Mathf.Max(14, input.fontSize); Set "input.fontSize" to an appropriate number.

It worked on mobile's chrome and safari.

avatar image
0

Answer by Cloudmaking0 · Dec 15, 2020 at 09:41 AM

Hey, the only fix i really found was an on-screen keyboard w$$anonymous$$ch i found on git hub, i cant remember the exact name. Very weird problem though isnt it.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by jtiret · Dec 15, 2020 at 03:54 PM

I eventually found a way that fixes the issue on my side (I had the exact same problem):

  1. Open Project Settings

  2. Go in "Player"

  3. Show HTML5/WebGL settings

  4. Set the Active Input Handling to "Both" instead of "Input System Package (New)"

Not sure exactly why unfortunately, but that fixed the problem.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image LilGames · Jul 15, 2021 at 07:09 PM 0
Share

We had to change this in our code: UnityEngine.WebGLInput.captureAllKeyboardInput = false;

Posting this here in case anyone else has theirs set to false in code.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

216 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

exporting data from webGL? 1 Answer

SpriteShapes not displaying for WebGl 1 Answer

Game in browser- but without WebGL 0 Answers

UI not working properly in webgl build (new input system) 0 Answers

Unity on MacOS build WebGL Error. 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges