Author Topic: Getting Slammed with Errors (Screenshot included)  (Read 5408 times)

Lairinus

  • Guest
Getting Slammed with Errors (Screenshot included)
« on: December 29, 2013, 04:45:49 PM »
I'm using Visual Studios Express for my current project and upon importing NGUI to a blank project, I received one error about an enum not containing a definition for Blackberry. After I deleted that line, 15 errors popped up:http://postimg.org/image/rlkv9bj53/


Now, these errors don't actually interfere with Unity. I can still play the game fine and use any NGUI Components that I want with no problems whatsoever. It just seems a little excessive to have 15 errors always lingering around that I'll never be able to get rid of.

Is there a solution?

** Just went through and deleted everything causing an error**

Will this cause a problem down the line?


Also, I've had this problem in the past but I fixed it. I tried replicating the fix and it doesn't seem to work with the 3.0.8 update.

This also happens before and after I ran the 3.x update asset.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Getting Slammed with Errors (Screenshot included)
« Reply #1 on: December 29, 2013, 06:13:55 PM »
Does Unity even support Visual Studio Express? I do all my work in VS 2010 Pro and it works as expected.

Looks to me like your Editor-side scripts can't see the Runtime scripts. This means that VS Express doesn't support dependencies, so it's not going to work properly.

Don't "fix" things to make it compile in VS Express. You will only break NGUI's functionality on the Unity's side.

Lairinus

  • Guest
Re: Getting Slammed with Errors (Screenshot included)
« Reply #2 on: December 29, 2013, 07:19:42 PM »
Unity supports VS Express but without the "click to open" functionality as with Mono and VS pro. I'm sure a bunch of other things aren't included but... yeah.

Thanks for the advice, though. Because I don't like Mono, I'm going to use NGUI while modified until (if) it breaks. At that point I guess i'll have to get VS pro.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Getting Slammed with Errors (Screenshot included)
« Reply #3 on: December 29, 2013, 07:36:53 PM »
Since the "errors" you see are on the editor side, you won't see any problems with run-time scripts. You will simply be missing NGUI editor functionality... which is extensive.

Asse

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 70
    • View Profile
Re: Getting Slammed with Errors (Screenshot included)
« Reply #4 on: December 30, 2013, 09:47:45 AM »
Seems like the UNITY_EDITOR define isn't set.

Lairinus

  • Guest
Re: Getting Slammed with Errors (Screenshot included)
« Reply #5 on: December 30, 2013, 03:09:18 PM »
Thanks, Asse. I actually downloaded the trial for VS 2013 and got the same error which caused some intense rage.

Haven't personally messed around with too many editor scripts, but it needs to be configured to "Debug" not "Release" with editor defines.