Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: retromadegames on September 07, 2012, 12:52:42 PM

Title: UILabel type declaration
Post by: retromadegames 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
Title: Re: UILabel type declaration
Post by: ArenMook on September 07, 2012, 03:52:13 PM
There is no "UIBaseLabel". Just make it point to a UILabel.
Title: Re: UILabel type declaration
Post by: retromadegames 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
Title: Re: UILabel type declaration
Post by: retromadegames on September 08, 2012, 03:39:46 AM
I found the solution  :D

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