Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started 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
-
There is no "UIBaseLabel". Just make it point to a UILabel.
-
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
-
I found the solution :D
I moved NGUI scripts to plugin folder and now works fine ;)