Author Topic: [Solved] onTextChanged for UIInput  (Read 4476 times)

aprendaGames

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
[Solved] onTextChanged for UIInput
« 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.
« Last Edit: March 28, 2013, 03:46:25 AM by aprendaGames »

aprendaGames

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: onTextChanged for UIInput
« Reply #1 on: March 28, 2013, 03:46:03 AM »
Solved:

public void OnInputChanged(UIInput UIInputScript)
{

}

demid

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
    • View Profile
Re: onTextChanged for UIInput
« Reply #2 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. It contains textChanged event as well as some other minor stuff which I'm using in my project. Feel free to ask questions.