Unable to Enable Text Selection in Unity InputField on Android

Issue: I’m facing difficulties enabling text selection in Unity when using an InputField with readOnly set to true. The issue seems specific to Android devices, as it works as expected on other platforms.

Details:

  • Unity Version: [2021]

  • Platform: Android

  • InputField Configuration:

  • readOnly is set to true.

  • Description: Despite setting readOnly to true, the InputField on Android does not allow text selection. Users are unable to highlight or copy text in the InputField.

Additional Information:

  • I have tested this on multiple Android devices with different Android versions, and the issue persists.

Expected Behavior: Text selection should be enabled in the InputField even when readOnly is set to true.

Community Assistance: If anyone in the community has faced a similar issue or has insights into how to enable text selection in an InputField on Android, your assistance would be highly appreciated.

Thank you for your time and assistance!

Since all Android devices support “BACK,” does that work?

Does it work without readOnly? If so just do not mark it readonly and instead if the user changes the string, force it back to what it was before. :slight_smile: Gross but it might just work.

This is nothing to do with 2D components or features (certainly not 2D physics as the added tag suggests!) so this isn’t the appropriate forum to ask and either the Android or UI forums would be more appropriate.

I’ll move this to the Android forum for you.

but if I uncheck read only it moves and open the keyboard and you can select the work on keyboard not on the screen