Hello Guest

Author Topic: [Help] How to get passworld value use tk2dUITextInput?  (Read 5956 times)

yuq229

  • Newbie
  • *
  • Posts: 4
    • View Profile
[Help] How to get passworld value use tk2dUITextInput?
« on: September 07, 2013, 08:18:43 pm »
I can't get password value !

I did the following:

public tk2dTextMesh demo;

Debug.Log(rere4.text);

but I get " ****** " and it does not mean.

Help me!



unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: [Help] How to get passworld value use tk2dUITextInput?
« Reply #1 on: September 07, 2013, 08:31:43 pm »
The textMesh will simply return whats in it. The ***s. You need to get the password from the tk2dUITextInput object.

public tk2dUITextInput textInput;
Debug.Log(  textInput.Text );

yuq229

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: [Help] How to get passworld value use tk2dUITextInput?
« Reply #2 on: September 08, 2013, 12:55:18 pm »
oh that easy!
thanks you very much! ;D

fattie

  • 2D Toolkit
  • Full Member
  • *
  • Posts: 106
    • View Profile
Re: [Help] How to get passworld value use tk2dUITextInput?
« Reply #3 on: September 15, 2013, 02:58:21 pm »
Lame question --- does TK's awesome fields system, actually handle INPUT ?

Input is actually really messy on unity on the different platforms (ios, andr, webPlayer) - sucks. It's a real, real chore to get all the backspaces, item selections etc working on all the platforms.

Sorry I have not had a chance to look at the package, so asking here of course  :)

(Obviously Unikron could wrap up the programming of input to go with your forms solution, in a few minutes  :) )

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: [Help] How to get passworld value use tk2dUITextInput?
« Reply #4 on: September 15, 2013, 09:56:52 pm »
As far as I know it works fine on all platforms ;)

fattie

  • 2D Toolkit
  • Full Member
  • *
  • Posts: 106
    • View Profile
Re: [Help] How to get passworld value use tk2dUITextInput?
« Reply #5 on: September 16, 2013, 07:45:14 am »
un-real!  I didn't know you did input, how amazing is that.  holy!