Author Topic: UILabel type declaration  (Read 4557 times)

retromadegames

  • Guest
UILabel type declaration
« on: September 07, 2012, 12:52:42 PM »
Hi

I just bought NGUI and i update my project from the free version. Now, my JS code with any reference to:

var aLabel:UILabel

or

var aLabel:UIBaseLabel

i get always same error "not valid type"

But this was working fine with the free version.

How can i solve this? If i do not use this strict declaration mode i have problems with mobile deployment.

Thanks
Jose

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UILabel type declaration
« Reply #1 on: September 07, 2012, 03:52:13 PM »
There is no "UIBaseLabel". Just make it point to a UILabel.

retromadegames

  • Guest
Re: UILabel type declaration
« Reply #2 on: September 07, 2012, 07:04:30 PM »
Yes, i did too... it not work...

private var infoMsg:UILabel;

Assets/scripts/GameGlobal.js(24,21): BCE0018: The name 'UILabel' does not denote a valid type ('not found').

I am using Unity Pro 3.5.5f2

retromadegames

  • Guest
Re: UILabel type declaration
« Reply #3 on: September 08, 2012, 03:39:46 AM »
I found the solution  :D

I moved NGUI scripts to plugin folder and now works fine  ;)