Author Topic: UIInput.current not being set for OnSubmit  (Read 2075 times)

csykora

  • Guest
UIInput.current not being set for OnSubmit
« on: October 22, 2013, 08:10:18 AM »
I don't know if this has been posted yet but with updating to use EventDelegate I'm noticing an issue with UIInput.current. My understanding is that this should get set when the OnSubmit gets triggered.

Looking through UIInput it looks like current never gets set. Here is the current code for Submit()

  1.        
  2. protected void Submit ()
  3. {
  4.         if (NGUITools.IsActive(this))
  5.         {
  6.                 mValue = value;
  7.                 EventDelegate.Execute(onSubmit);
  8.                 SaveToPlayerPrefs(mValue);
  9.         }
  10. }
  11.  

Shouldn't this set current = this; then current = null after executing? Or am I not understanding this correctly

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIInput.current not being set for OnSubmit
« Reply #1 on: October 22, 2013, 07:51:28 PM »
Does it currently get set outside of the Submit function? It would likely make sense. I'll have a look at it when I get back home.