Author Topic: Fully Specified UILabel?  (Read 3912 times)

jonathanq

  • Guest
Fully Specified UILabel?
« on: December 03, 2013, 03:31:18 PM »
I've been happily using NGUI for about 6 months now and have UILabel open variables assigned all over my project. I recently downloaded the U3DXT iOS Native kit. It uses a similar naming convention for UILabel (U3DXT.iOS.Native.UIKit.UILabel.) and while I have yet to implement it - it is now causing Unity to throw up "BCE0004: Ambiguous reference 'UILabel': UILabel, U3DXT.iOS.Native.UIKit.UILabel." for every instance of my NGUI UILabel reference. It is causing my casual usage of NGUI's UILabel reference to no become ambiguous.

I need to replace all of my UILabel variables with a fully specified NGUI version of UILabel, but I do not know what that is.

Can someone help so I can isolate the UIBleeding? :)

Q

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Fully Specified UILabel?
« Reply #1 on: December 03, 2013, 05:15:43 PM »
There's not really an easy solution to this. One of the two packages needs to be in a namespace, so you can differentiate between the overlapping names.

I've advocated putting all of NGUI in a NGUI namespace earlier, but it's a bunch of work and it would break backward compatibility entirely, so it hasn't happened.

Alternatively, you have to refactor the name of one of the tools - I don't recommend NGUI's, since so many other files use the type.

jonathanq

  • Guest
Re: Fully Specified UILabel?
« Reply #2 on: December 03, 2013, 06:06:07 PM »
Well $x&*!!  Thanks for answering though!

:(

Q