Author Topic: Windows Phone NGUI vanishes or becomes garbled when you leave the game & return  (Read 3635 times)

SniperED007

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Windows Phone NGUI vanishes or becomes garbled when you leave the game & return.

1) Load a game that has some UILabel text displayed
2) Hit the lock button on the phone
3) Swipe to unlock the phone

Result:
The text is not visible anymore or becomes garbled (until you move the text around and it redraws)

Using Unity 4.2.2f1 & NGUI v 3.0.4

SniperED007

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
I edited the UILabel.cs and added the following:

  void OnApplicationPause(bool pauseStatus)
  {
    if (!pauseStatus)
    {
      hasChanged = true;
    }
  }

which resolved the problem, hopefully this can be added to the next update.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Will do, thanks.