Author Topic: [BUG] NGUI 3.6.2 UIInput multi-line text and HideInput on Mobile  (Read 4928 times)

Tripwire

  • Full Member
  • ***
  • Thank You
  • -Given: 9
  • -Receive: 0
  • Posts: 163
    • View Profile
Hi,

I think I found a bug in the latest version of NGUI (3.6.2). When setting the keyboard type to HideInput on a textfield with multiple lines, it still shows the inputfield above the keyboard but it isn't inputting anything there just in the textfield where it should be.

Steps to reproduce:
1. Create a Textfield with multiple lines
2. On the UIInput set the keyboard type to HideInput
3. Run it on your mobile device (I used the iPhone 5s)

EDIT:
It seems that Unity3D doesn't support hiding the Inputfield above the keyboard when using multi-line textfields:
http://docs.unity3d.com/ScriptReference/TouchScreenKeyboard-hideInput.html
« Last Edit: June 02, 2014, 03:42:46 AM by Tripwire »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [BUG] NGUI 3.6.2 UIInput multi-line text and HideInput on Mobile
« Reply #1 on: June 02, 2014, 10:56:15 PM »
Add a check for this on line 539 of UIInput.cs. It's currently just checking for keyboardType being KeyboardType.HideInput. Change it to include the multiline check as well:
  1. if (keyboardType == KeyboardType.HiddenInput && !label.multiLine)