Search Issue Tracker
By Design
Votes
0
Found in
2023.3.0b3
7000.0.0a1
Issue ID
UUM-60970
Regression
No
[TextMeshPro][Android] Textbox caret is missing when built on Android
Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Scenes/SampleSceneTMPro.unity” Scene
3. Build and Run on an Android device
4. In Player, select the TextBox
Expected result: Text caret exists
Actual result: Caret is not present
Reproducible with: UGUI 2.0.0 (2023.2.5f1, 2023.3.0b1)
Could not test with: TMP 3.2.0-pre.6 (2021.3.33f1), 4.0.0-pre.2 (2022.3.17f1), UGUI 3.0.0-exp.1 (2023.3.0b1), 3.0.0-exp.3 (2023.3.0b1) (“NullReferenceException: Object reference not set to an instance of an object“)
Reproducible with devices:
VLNQA00325, Samsung Galaxy Note10 (SM-N970F), Android 12, CPU: Exynos 9 (9825), GPU: Mali-G76
VLNQA00318, Oneplus OnePlus 7 Pro (GM1913), Android 11, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640
VLNQA00231, Huawei HUAWEI Mate 20 Pro (LYA-L29), Android 9, CPU: HiSilicon Kirin 980, GPU: Mali-G76
VLNQA00231, Samsung Galaxy A5(2017) (SM-A520F), Android 8.0.0, CPU: Exynos 7 Octa 7880, GPU: Mali-T830
VLNQA00494 - iPhone 14 Pro Max, 16.3.1 iOS
VLNQA00358 - iPhone 12, 14.1 iOS
VLNQA00392 - iPad (9th generation), 15.0 iOS
VLNQA00310 - iPad Pro 12.9", 13.4.1 iOS
Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested
Notes:
- Does not reproduce in Play Mode
- Reproduces with Legacy Input Field and TMP
- Could not test with Windows Standalone Player due to the Error “Assets\Scripts\Vibrator.cs(23,13): error CS0103: The name 'Handheld' does not exist in the current context”
- Reproduces with Mono and IL2CPP
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
- Files in the target folder are deleted without a proper warning when building an iOS project
- Character animation freezes when toggling animator on/off in a coroutine
- Certain textures are incorrectly marked in the render pass list when observed through Render Graph Viewer
Resolution Note:
The caret is controlled by the OS on Android by default, as is the input in general. If you want TMP to take over, you should check "Hide Soft Keyboard" or "Hide Mobile Input" in the TextField component. The caret then is drawn correctly.