Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: AndyGFX on March 31, 2013, 03:42:25 PM

Title: [solved]NGUI 2.5.0 + Unity 3.5.0f7 => Tools.current error
Post by: AndyGFX 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?
Title: Re: NGUI 2.5.0 + Unity 3.5.0f7 => Tools.current error
Post by: ArenMook 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
Title: Re: NGUI 2.5.0 + Unity 3.5.0f7 => Tools.current error
Post by: Nicki on March 31, 2013, 05:47:48 PM
You really should just update your Unity to 3.5.7 at the very least.
Title: Re: NGUI 2.5.0 + Unity 3.5.0f7 => Tools.current error
Post by: hoodlum 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.
Title: Re: NGUI 2.5.0 + Unity 3.5.0f7 => Tools.current error
Post by: Nicki 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.