Author Topic: version 3.0.6 conflicts with SpriteManager  (Read 4462 times)

Nubeh

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 41
    • View Profile
version 3.0.6 conflicts with SpriteManager
« on: November 28, 2013, 11:02:05 AM »
Hi,
I updated to 3.0.6 (I opened a new scene, deleted the NGUI folder and downloaded it again from the Assets Store). Unfortunately it doesn't compile because it says that Sprite has no definition of textureSize. I think the problem is that I have among my plugins SpriteManager which already includes a Sprite class and I'm not sure if NGUI tries to get that one instead of the Unity new Sprite class by mistake.

Is there a way to solve this without renaming the Sprite class of SpriteManager?

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: version 3.0.6 conflicts with SpriteManager
« Reply #1 on: November 28, 2013, 02:18:13 PM »
The real issue is that the SpriteManager's Sprite class conflicts with UnityEngine.Sprite. You can fix it on your end by explicitly specifying a UnityEngine.Sprite instead of just Sprite in UI2DSprite class (it only has to happen in two places).

I can also have it like that in the next update (f6)

Nubeh

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 41
    • View Profile
Re: version 3.0.6 conflicts with SpriteManager
« Reply #2 on: November 29, 2013, 03:37:47 AM »
Thanks it worked fine. I had to add UnityEngine.Sprite also in the NGUI settings file but it worked.