I’m having an issue with Unity WebGL and TextMeshPro InputField. The first time I click in the input, it selects the correct part, but I can’t drag to select nor click on other parts to move. This works in the Editor.
Also, pressing Ctrl + A in the field seems to crash the game
This only occurs after I edit the input field with different text
Bump. This still seems to be an issue with any selection
ArgumentOutOfRangeException: Selection is out of range.
Parameter name: selection
at UnityEngine.TouchScreenKeyboard.set_selection (UnityEngine.RangeInt value) [0x00000] in <00000000000000000000000000000000>:0
I’m also having this issue. TextMeshPro input field works as it should in the editor and in a standalone Windows player, but has issues has mentioned in the WebGL version. Cannot navigate the input field as it should. Same problems you’ve mentioned. If you file a bug report, let me know and I will vote on it.
I didn’t file a bug report, but I’m using this now: kou-yeung/WebGLInput: IME for Unity WebGL
The main problem seems to be related to mobile. When these 2 checkboxes are turned on, I don’t have any issues:
Here’s the code for them:
var inputs = FindObjectsByType<TMP_InputField>(FindObjectsInactive.Include, FindObjectsSortMode.None);
foreach (var input in inputs)
{
input.shouldHideSoftKeyboard = true;
input.shouldHideMobileInput = true;
}
Ok, thank you for the info. Checking those boxes would render the input textfields pretty useless for mobile though, right?
@Stephan_B this seems to still be an issue in Unity 6. Any ideas when it’ll get fixed without shortcuts?
I did try even the package suggested and I still cant move the carret in webgl to a position in the text.
Hello,
The error that was being thrown has recently been fixed on version 6000.0.35f1, could you try it on there to see if it still reproduces?
Here’s the link to the issue tracker: “ArgumentOutOfRangeException“ error when selecting 'TMP_InputField' content using keyboard in WebGL build
Title: WebGL TextMeshPro InputField not accepting space key input in Unity 6000.0.36f1 on WebGL Desktop Browsers.
In Unity version 6000.0.36f1, the TextMeshPro InputField does not respond to the space key when deployed as a WebGL build and tested on desktop browsers (e.g., Chrome, Firefox, Edge). All other keys, including letters and numbers, work as expected — only the space key fails to register any input.
This issue affects both single-line and multi-line TMP_InputFields. The same project works correctly in standalone builds and in the Unity Editor. The issue seems specific to WebGL.

