Author Topic: TouchScreenKeyboard.hideInput issue  (Read 4388 times)

FOX_ITA

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
TouchScreenKeyboard.hideInput issue
« on: January 31, 2014, 10:09:39 AM »
Hello there,

i'm having hard time with the TouchScreenKeyboard.hideInput = true !

I'm using an UIInput object and a textfield (UILabel) to fill the input from the keyboard and it works, but i wanna remove the upper part of the keyboard where the input preview is.
So i found that i've to use hideInput = true flag.

So just to test it i put into my Update() method inside my script but nothing happen.

Any suggestion?

I'm using Unity 4.3.3f1 and NGUI 3.0.8 f7

Many thanks!!

cyx

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: TouchScreenKeyboard.hideInput issue
« Reply #1 on: March 03, 2014, 10:25:21 AM »
I've had the same problem. Set your max. lines for the textfield to 1 and not 0. The docs say:

"This property is applicable for SINGLE LINE text fields that have assigned keyboard with alphanumeric keys. Number-only keyboards will show text input field no matter if this flag is set to true or false."

As far as I know, alphanumeric and so on doesn't matter, but single line is the important setting.