Author Topic: [Solved]Hugh error list after updating to 3.7.0  (Read 2037 times)

cubicgames

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
[Solved]Hugh error list after updating to 3.7.0
« on: August 18, 2014, 06:17:39 AM »
Hi there,

after updating NGUI today, a lot of errors appear references to the example folder.
I deleted the example folder, but that only changed the type of error.

After importing 3.7.0 there are 19 error (each of them about 6-7 times)
Quote
Assets/NGUI/Examples/Scripts/InventorySystem/Editor/InvDatabaseInspector.cs(44,31): error CS0117: `GUI' does not contain a definition for `color'
Assets/NGUI/Examples/Scripts/InventorySystem/Editor/InvDatabaseInspector.cs(60,37): error CS0117: `GUI' does not contain a definition for `DrawTextureWithTexCoords'
Assets/NGUI/Examples/Scripts/InventorySystem/Editor/InvDatabaseInspector.cs(121,37): error CS0117: `GUI' does not contain a definition for `backgroundColor'

After deleting the example folder (3 times)
Quote
Assets/NGUI/Scripts/Editor/ComponentSelector.cs(263,37): error CS0117: `GUI' does not contain a definition for `contentColor'


Wish you can help me :)

Greetz

PS: This problem occurs also in a new project.
« Last Edit: August 18, 2014, 07:46:59 AM by cubicgames »

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Hugh error list after updating to 3.7.0
« Reply #1 on: August 18, 2014, 07:10:32 AM »
Sounds like you've defined another GUI class that somehow overlaps with the built in Unity one.

Try putting this in the top of those files:

  1. using GUI = UnityEngine.GUI;
  2.  

cubicgames

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Hugh error list after updating to 3.7.0
« Reply #2 on: August 18, 2014, 07:22:45 AM »
That's weird.
In a new project is no other definition of GUI.
It's the first time, I hat such problems with NGUI.

Your tip occurs another error

Quote
Assets/NGUI/Scripts/Editor/ComponentSelector.cs(267,33): error CS0576: Namespace `global::' contains a definition with same name as alias `GUI'

EDIT:
Following steps solved the problem:
- Delete NGUI folder in project view
- Close Unity
- Delete library folder
- Start Unity
- Redownload NGUI
« Last Edit: August 18, 2014, 07:49:11 AM by cubicgames »