Author Topic: UILabel Not Updating on Windows Build  (Read 3771 times)

subvertio

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
UILabel Not Updating on Windows Build
« on: September 06, 2013, 01:26:07 AM »
  1. public void Points(int val)
  2.     {
  3.         points += val;
  4.                 PlayerPrefs.SetInt("points", points);
  5.         scoreLabel.text = PlayerPrefs.GetInt("points").ToString();
  6.                
  7.     }

This Show's FINE and works great in EDITOR but NOT for a windows Build. I've tried rebuilding the UI and making sure it has it's own Panel, but it stays static when I build in every instance I have tried. Using the latest version of NGUI as of this date.

I can't seem to find a thread where NGUI UILabels work fine in Editor but NOT in the actual Build.


-SubV

subvertio

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
[SOLVED] Re: UILabel Not Updating on Windows Build
« Reply #1 on: September 06, 2013, 07:20:03 AM »
I had duplicate script names when I converted from JS to C#. After conversion was done I removed the same scripts that were JS with the same names as C#. Works now!