Search Issue Tracker

Won't Fix

Votes

0

Found in

2022.3.59f1

Issue ID

UUM-99029

Regression

No

[Android] Cannot select text written in the TMPro InputField when dragging the caret

-

How to reproduce:
1. Open the “TheCaretSelect.zip“
2. Build and Run for Android
3. Press on the InputField in the application
4. Type in some text
5. Select a part of the typed text, by dragging the caret

Expected result: Text is selected by dragging the caret
Actual result: Text is not selected by dragging the caret and caret cannot be moved

Reproducible with: 2022.3.59f1, 2023.2.0a13
Not reproducible with: 2023.2.0a14, 6000.0.41f1, 6000.1.0b9, 6000.2.0a6
Fixed in: 2023.2.0a14

Reproducible environment: macOS 15.3.1  (M4 Max), Windows 11 (Reporters)
Not reproducible environment: No other environment tested

Reproducible with these devices:
VLNQA00511, Samsung Galaxy S8 (SM-G950F), Android 9, CPU: Exynos 9 Octa 8895, GPU: Mali-G71
VLNQA00518, Google Pixel 4 (Pixel 4), Android 13, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640
VLNQA00107, Huawei Nexus 6P (Nexus 6P), Android 8.1.0, CPU: Snapdragon 810 MSM8994, GPU: Adreno (TM) 430
VLNQA00335, Samsung Galaxy S20+ 5G (SM-G986B), Android 10, CPU: Exynos 990, GPU: Mali-G77

Not reproducible with these devices:
VLNQA00416, iPhone 13 Pro (MLVA3ET/A), CPU: Apple A15 Bionic, GPU: Apple designed, OS: 16.1.1

Workaround:
1. Create a local instance of the “TextMeshPro (com.unity.textmeshpro)” package
2. In that instance navigate to the “TMP_InputField.cs“ script
3. Comment out the line from 1632 to 1635
4. Add the local instance of the package to the “<Project Directory>/Packages“ folder

Notes:
- Must have Hide Mobile Input enabled in the “InputField (TMP)” GameObject to reproduce
- More information in the Internal Notes

  1. Resolution Note:

    Fixed in TMP 3.2.0-pre.x. Users need to update to this version in 2022 LTS to get the fix.

Add comment

Log in to post comment