Author Topic: Error once imported  (Read 3940 times)

Bilko

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Error once imported
« on: May 13, 2013, 11:50:03 AM »
Hello;

First off I love NGUI it just does what I need however today I started a new project, fresh install and I get the following error: Assets/NGUI/Scripts/Editor/UIAtlasMaker.cs(116,42): error CS0117: `UnityEngine.SystemInfo' does not contain a definition for `maxTextureSize'

How can I resolve this, thanks in advance for your help!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Error once imported
« Reply #1 on: May 13, 2013, 12:51:42 PM »
You need to update your Unity 4.0 to Unity 4.1.

Bilko

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: Error once imported
« Reply #2 on: May 20, 2013, 07:31:56 AM »
I upgraded my version to 4.1.2 / latest version and I get this error now:

Assets/NGUI/Scripts/Editor/UICameraTool.cs(185,81): error CS1061: Type `Camera' does not contain a definition for `gameObject' and no extension method `gameObject' of type `Camera' could be found (are you missing a using directive or an assembly reference?)

Thanks

Bilko

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: Error once imported
« Reply #3 on: May 20, 2013, 07:38:28 AM »
Actually correction I get 25 errors stemming from the UICameraTool.cs script. Once I upgraded. I have deleted and e-imported with no luck. Attached is the error list image from Unity's console.
« Last Edit: May 20, 2013, 07:58:10 AM by Bilko »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Error once imported
« Reply #4 on: May 20, 2013, 09:39:05 AM »
Camera is a Unity Behaviour, and as such it most certainly has a "gameObject" property -- just like any other behaviour.

My guess -- you have your own class named "Camera".

Bilko

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: Error once imported
« Reply #5 on: May 20, 2013, 10:04:49 AM »
Your completely correct about your guess, it was used in my camera follow script. I need to re-write that one haha.

Thanks again.