Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: aprendaGames on March 28, 2013, 12:25:17 AM

Title: [Solved] onTextChanged for UIInput
Post by: aprendaGames on March 28, 2013, 12:25:17 AM
First off, I LOVE NGUI. It's saved me sooo much time. :)

I know how to use OnSubmit, but that requires the user to push enter. How do I get it to call a function each time the input changes?

By the way, I'm using c#, but I'm sure I'll be able to figure it out if someone tells me a js solution.
Title: Re: onTextChanged for UIInput
Post by: aprendaGames on March 28, 2013, 03:46:03 AM
Solved:

public void OnInputChanged(UIInput UIInputScript)
{

}
Title: Re: onTextChanged for UIInput
Post by: demid on March 28, 2013, 03:53:54 AM
You can try my own patched version of UIInput 2.5.0c: https://www.dropbox.com/s/clp5yvtklxupcdt/UIInput_2.5.0c_with_textChanged.ZIP (https://www.dropbox.com/s/clp5yvtklxupcdt/UIInput_2.5.0c_with_textChanged.ZIP). It contains textChanged event as well as some other minor stuff which I'm using in my project. Feel free to ask questions.