Author Topic: [solved]NGUI 2.5.0 + Unity 3.5.0f7 => Tools.current error  (Read 5921 times)

AndyGFX

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 24
    • View Profile
    • AndyGFX
[solved]NGUI 2.5.0 + Unity 3.5.0f7 => Tools.current error
« on: March 31, 2013, 03:42:25 PM »
Hi,

I never had this error before with 2.3.x versions, but with 2.5.0 i get this error when i want update NGUI in my project:

Assets/NGUI/Scripts/Editor/UIWidgetInspector.cs(528,55): error CS0117: `Tools' does not contain a definition for `current'

Is it Unity or NGUI problem?
« Last Edit: April 06, 2013, 06:30:48 PM by Nicki »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 2.5.0 + Unity 3.5.0f7 => Tools.current error
« Reply #1 on: March 31, 2013, 03:51:49 PM »
At the very top of version notes, it clearly states that support for 3.5.4 and earlier versions has been deprecated, and if you still use 3.5.4 or earlier, you should not update. It's capitalized for emphasis too -- both in the asset store, and here: http://www.tasharen.com/forum/index.php?topic=11.msg17529#msg17529

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: NGUI 2.5.0 + Unity 3.5.0f7 => Tools.current error
« Reply #2 on: March 31, 2013, 05:47:48 PM »
You really should just update your Unity to 3.5.7 at the very least.

hoodlum

  • Guest
Re: NGUI 2.5.0 + Unity 3.5.0f7 => Tools.current error
« Reply #3 on: April 06, 2013, 05:18:03 PM »
I was having the same error and it turns out I'm using Shatter Toolkit which also has a class called Tools.  I renamed it to STools and NGUI is now back up and running.  Search your assets for Tools and make sure there's nothing else which is clashing.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: NGUI 2.5.0 + Unity 3.5.0f7 => Tools.current error
« Reply #4 on: April 06, 2013, 06:30:31 PM »
Yeah, in general if it can't find something in a given namespace (Tools, here) it's because there are several of them and Unity chooses one at random - it should be giving you a thing in the console bitching about naming overlap.