Author Topic: Input Caret doesn’t show when inputting from Device.  (Read 3044 times)

cleancoder

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Input Caret doesn’t show when inputting from Device.
« on: November 16, 2017, 02:57:44 AM »
Hello.

I have an issue with NGUI.
This issue can be found in "Example 12 - Chat Window" in NGUI’s sample. You can check this sample to understand more easily.

<Issue> Input Caret doesn’t show when inputting from Device.
When inputting in the Unity Editor, it shows normally, but when inputting from a device, Input Caret doesn’t show.
Here’s how to reproduce it: NGUI -> Examples -> Scenes -> Example 12 - Chat Window Build -> Input Caret doesn’t show when inputting from Device
You can refer to these screenshots: Screenshot_UnityEditor.png, Screenshot_Device.png

<Current development environment>
* Unity 3D engine: 5.6.3 f1
* NGUI: 3.11.1
* Test Devices: Samsung Galaxy Note 3, Samsung Galaxy Note 5, iPhone 5, iPad New 9.7

FYI, the issue also occurs in NGUI v3.11.4. Please let me know how to fix this.

Thanks.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Input Caret doesn’t show when inputting from Device.
« Reply #1 on: November 23, 2017, 01:21:53 AM »
This is intentional, default behaviour. Your text input gets handled by the device's keyboard. NGUI has no access to it, or its caret position. All it has access to is the final text.

cleancoder

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Input Caret doesn’t show when inputting from Device.
« Reply #2 on: November 30, 2017, 02:40:49 AM »
Thank you for your answer.
 
However, my issue was about the Input Caret not showing, but your answer mentions that I can’t access it nor the position.
 
I don't need to access the caret but just need to show it on a device. I asked this question because I could see the caret in my editor.
 
Could you please check again?
 
Thanks