Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Bradamante3D on May 08, 2015, 04:40:51 PM

Title: Weird Application isPlaying error
Post by: Bradamante3D on May 08, 2015, 04:40:51 PM
Uhm, I am getting a weird error when opening a project that contains NGUI. It's the SGSK/NGUI/TNet special edition package. Thing is, I never got this error. I am not getting it in other projects. Unity, TNet and NGUI are all up to date (5.0.1, 2.0.5 and 3.8.2).

  1. Assets/NGUI/Scripts/Interaction/UIButtonColor.cs(75,42): error CS0117: `Application' does not contain a definition for `isPlaying'
  2. Assets/NGUI/Scripts/Interaction/UIButtonColor.cs(83,42): error CS0117: `Application' does not contain a definition for `isPlaying'
  3. Assets/NGUI/Scripts/Interaction/UIButtonColor.cs(128,61): error CS0117: `Application' does not contain a definition for `isPlaying'
  4. Assets/NGUI/Scripts/Interaction/UIButtonColor.cs(159,34): error CS0117: `Application' does not contain a definition for `isPlaying'
  5. Assets/NGUI/Scripts/Interaction/UIButtonColor.cs(181,34): error CS0117: `Application' does not contain a definition for `isPlaying'
  6.  

Again: I am not getting this in any other project with a similiar setup. I never got this in the same project before and I have not updated the project recently.

It does not go away when I restart Unity. The Inspector is unusable since the scripts are not being loaded ("fix compilation errors"). Can't hit Play either, obviously.
Title: Re: Weird Application isPlaying error
Post by: ArenMook on May 09, 2015, 04:25:27 AM
Notice how it says "Application" not "UnityEngine.Application"?

This tells me that you created a class called "Application" which conflicts with Unity's own Application class.
Title: Re: Weird Application isPlaying error
Post by: Bradamante3D on May 09, 2015, 11:17:20 AM
No, you did :) It's in Assets/TNet/TNetServer.zip -> TNetTest/ServerMain.cs

OK, stupid me. Sorry for that.
Title: Re: Weird Application isPlaying error
Post by: ArenMook on May 14, 2015, 01:59:24 PM
That stand-alone wasn't meant to be inside Assets. ;)