Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Bilko on May 13, 2013, 11:50:03 AM

Title: Error once imported
Post by: Bilko 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!
Title: Re: Error once imported
Post by: ArenMook on May 13, 2013, 12:51:42 PM
You need to update your Unity 4.0 to Unity 4.1.
Title: Re: Error once imported
Post by: Bilko 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
Title: Re: Error once imported
Post by: Bilko 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.
Title: Re: Error once imported
Post by: ArenMook 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".
Title: Re: Error once imported
Post by: Bilko 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.