Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: lukos86 on November 12, 2013, 07:34:28 AM

Title: Missing UIInput caret / cursor
Post by: lukos86 on November 12, 2013, 07:34:28 AM
Hi, Ive noticed this problem after in last few 3.0.x releases.
Character caret is missing on mobile devices once entering text. Its all fine in editor, I can see '|' char.

Any clues how to fix this?

Thanks in advance
Title: Re: Missing UIInput caret / cursor
Post by: ArenMook on November 12, 2013, 02:58:14 PM
Change the line 235 from
  1. protected bool needsTextCursor { get { return (isSelected && mKeyboard == null); } }
to
  1. protected bool needsTextCursor { get { return (isSelected && mKeyboard != null); } }
Title: Re: Missing UIInput caret / cursor
Post by: lukos86 on November 14, 2013, 08:17:07 AM
Works perfectly, thanks for help  :)
Title: Re: Missing UIInput caret / cursor
Post by: mechanicals on October 17, 2014, 06:42:08 AM
Hi,

I am facing the same issue regarding the Caret missing in Windows 8 Phone, but with the updated UIInput.cs. The updated files does not have the "needsTextCursor".
Kindly help out.
Title: Re: Missing UIInput caret / cursor
Post by: ArenMook on October 18, 2014, 08:30:02 AM
Caret doesn't show up unless you choose to "hide input". Otherwise there would be two of them -- one drawn by NGUI and another drawn by the OS text field.
Title: Re: Missing UIInput caret / cursor
Post by: mechanicals on October 20, 2014, 12:29:41 AM
Hi ArenMook,

I didn't quite get what you meant. Can you elaborate a bit as to how to display the caret using for mobile Devices.
What part of code in NGUI do I need to change ?
Title: Re: Missing UIInput caret / cursor
Post by: ArenMook on October 20, 2014, 11:28:09 PM
None. "Hide Input" is an option on the NGUI's input field. Check it, and the OS input field won't be visible. Only the keyboard will be visible.