Reproduction steps:
- Open the user’s attached project (“TextInput.zip”)
- Build and run on an Android device
- In the XXXX InputField enter “abcdefg”. At the end of this step, the string will read "abcd-efg"
- Place caret between "-" and "e" and hit backspace once. The string will change to "abce-fg" and the caret will be at the end
Expected result: Caret will be placed between "c" and "e"
Actual result: Caret will be at the end
Reproducible with: 2020.3.40f1, 2021.3.10f1, 2022.2.0b8
Could not test with: 2022.1.17f1, 2023.1.0a11 com.unity.2d.animation: ENOENT: no such file or directory, stat
Reproducible with devices:
VLNQA00332, Samsung Galaxy XCover4 (SM-G390F), Android 9, CPU: Exynos 7 Quad 7570, GPU: Mali-T720
VLNQA00318, Oneplus OnePlus 7 Pro (GM1913), Android 11, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640
VLNQA00325, Samsung Galaxy Note10 (SM-N970F), Android 12, CPU: NOT FOUND, GPU: Mali-G76
VLNQA00494 - iPhone 14 Pro Max, 16.0 iOS
VLNQA00358 - iPhone 12, 14.1 iOS
VLNQA00392 - iPad (9th generation), 15.0 iOS
VLNQA00310 - iPad Pro 12.9", 13.4.1 iOS
Reproduced on: Windows 10 Pro 21H2
Notes:
- Within the editor, this script works as desired. On an Android build, however, the caret will jump back to the end of the line if a modification was made to the caret position.
- The desired behavior is the one in the Editor, the android build should replicate this!
- Watch “Repro.mp4” video for reproduction steps