2D Toolkit Forum

2D Toolkit => Support => Topic started by: yuq229 on September 07, 2013, 08:18:43 pm

Title: [Help] How to get passworld value use tk2dUITextInput?
Post by: yuq229 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!


Title: Re: [Help] How to get passworld value use tk2dUITextInput?
Post by: unikronsoftware 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 );
Title: Re: [Help] How to get passworld value use tk2dUITextInput?
Post by: yuq229 on September 08, 2013, 12:55:18 pm
oh that easy!
thanks you very much! ;D
Title: Re: [Help] How to get passworld value use tk2dUITextInput?
Post by: fattie 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  :) )
Title: Re: [Help] How to get passworld value use tk2dUITextInput?
Post by: unikronsoftware on September 15, 2013, 09:56:52 pm
As far as I know it works fine on all platforms ;)
Title: Re: [Help] How to get passworld value use tk2dUITextInput?
Post by: fattie on September 16, 2013, 07:45:14 am
un-real!  I didn't know you did input, how amazing is that.  holy!