Author Topic: `GUI' does not contain a definition for `color'  (Read 5036 times)

milox

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 10
    • View Profile
`GUI' does not contain a definition for `color'
« on: June 21, 2012, 01:00:33 PM »
I just imported newest NGUi to my Unity project and it's giving me this error:

Quote
Assets/NGUI/Scripts/Editor/ComponentSelector.cs(117,37): error CS0117: `GUI' does not contain a definition for `color'

I have the newest Unity 3.5.2f2, help please

« Last Edit: June 21, 2012, 01:21:35 PM by milox »

PhilipC

  • Guest
Re: `GUI' does not contain a definition for `color'
« Reply #1 on: June 21, 2012, 01:55:42 PM »
Free version of NGUI or paid version? and is that the only compile error because Unity's site says it should be there. (http://unity3d.com/support/documentation/ScriptReference/GUI-color.html)

milox

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 10
    • View Profile
Re: `GUI' does not contain a definition for `color'
« Reply #2 on: June 21, 2012, 02:06:53 PM »
It's paid version $45 bucks, downloaded from Asset Store.

PhilipC

  • Guest
Re: `GUI' does not contain a definition for `color'
« Reply #3 on: June 21, 2012, 02:13:14 PM »
Have you by any chance imported another package that has overridden the class name GUI? Do a project wide search for "GUI"

milox

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 10
    • View Profile
Re: `GUI' does not contain a definition for `color'
« Reply #4 on: June 21, 2012, 02:29:52 PM »
OMG I did a have a class like that, some old unused code lol, I feel so dumb :o Thank you, the issue is gone.