Author Topic: UISpriteData namespace Missing  (Read 5789 times)

SandiCassidy

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
UISpriteData namespace Missing
« on: December 07, 2013, 05:01:39 PM »
I upgraded to the latest release but am getting a number of compile errors like this "Assets/NGUI/Scripts/UI/UILabel.cs(60,43): error CS0246: The type or namespace name `NGUIText' could not be found. Are you missing a using directive or an assembly reference?" It also is complaining about 'UISpriteData'.  What directive is missing?

I also upgraded the add ons Playmaker NGUI scripts and SceneManager but can't find any way to figure out why NGUI won't load or where a possible conflict could be. (Menu won't load because of compile errors). 

Sandi

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UISpriteData namespace Missing
« Reply #1 on: December 07, 2013, 08:08:42 PM »
http://www.tasharen.com/ngui/docs/class_n_g_u_i_text.html

NGUIText is a part of NGUI. I suggest re-importing it, following the instructions in the readme file.

SandiCassidy

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: UISpriteData namespace Missing
« Reply #2 on: December 08, 2013, 12:27:17 PM »
Strangely - that worked. Not sure why it needed to be imported twice but this time a few more objects came in.

Thanks

col000r

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 3
  • Posts: 43
  • Mighty Emperor of Planet "Home Office"
    • View Profile
    • BLACKISH
Re: UISpriteData namespace Missing
« Reply #3 on: March 05, 2014, 01:31:48 AM »
Same thing happened to me just now. Thanks for the tip! On importing the package a second time a whole lot of new things appeared. (For example: TweenPosition didn't make it in the first time for some reason - I guess unitypackages have always been a mess... try importing a unitypackage that was made with a newer version of Unity into an older version... *boom*)
Games: BLACKISH | Blog | Assets