Author Topic: Weird Application isPlaying error  (Read 2007 times)

Bradamante3D

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 79
    • View Profile
Weird Application isPlaying error
« 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.
#301224014, #301432336, #302399130

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Weird Application isPlaying error
« Reply #1 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.

Bradamante3D

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 79
    • View Profile
Re: Weird Application isPlaying error
« Reply #2 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.
#301224014, #301432336, #302399130

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Weird Application isPlaying error
« Reply #3 on: May 14, 2015, 01:59:24 PM »
That stand-alone wasn't meant to be inside Assets. ;)