Author Topic: NGUI Just Stopped Working, Project Now Won't Run  (Read 3706 times)

BlitzPackage

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
NGUI Just Stopped Working, Project Now Won't Run
« on: February 05, 2014, 09:15:41 PM »
Greetings,

I have been using NGUI now for a few months.  Then, yesterday, I open my project, and the project no longer will compile nor run.  In addition, the NGUI menu is gone.  When I press "Play" it tells me there are numerous compile errors.  They appear to all be in the NGUI files.  I am now thoroughly confused about how to fix these compile issues and make the NGUI menus reappear.  Any help you provide would be greatly appreciated.

Thanks,
Blitz

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI Just Stopped Working, Project Now Won't Run
« Reply #1 on: February 05, 2014, 09:19:38 PM »
Post the errors?

Yukichu

  • Full Member
  • ***
  • Thank You
  • -Given: 3
  • -Receive: 8
  • Posts: 101
    • View Profile
Re: NGUI Just Stopped Working, Project Now Won't Run
« Reply #2 on: February 05, 2014, 10:13:41 PM »
Try deleting the NGUI package and importing it fresh?

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: NGUI Just Stopped Working, Project Now Won't Run
« Reply #3 on: February 06, 2014, 03:23:03 AM »
Screenshot the errors, put it on imgur and post the link here. Obviously there shouldn't be anything not compiling, so what is happening in something like 95 % of the times, is a local change doesn't compile, which causes a cascade of things not compiling.

BlitzPackage

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: NGUI Just Stopped Working, Project Now Won't Run
« Reply #4 on: February 12, 2014, 09:44:35 PM »
Greetings,

First, thank you for your speedy reply.  I really appreciate it.

I have attached screenshots of the errors (using the "Attach" option that accompanies this post's creation).

Essentially, it tells me there is some error in the code.  Then when I click it, it launches MonoDevelop and goes to the code where the error is located.  The error message is: "Assets/NGUI/Scripts/Interaction/UIInputValidator.cs(31,49): error CS1061: Type `UIInput' does not contain a definition for `validator' and no extension method `validator' of type `UIInput' could be found (are you missing a using directive or an assembly reference?)"

Also, how do you uninstall NGUI?  I am on the MacBook Pro.  I can't find it anywhere to uninstall and reinstall it.  I try to install it from the Asset Store but that seems to do nothing.

Any help would be appreciated since my project is not at a stand still.

Again, thanks for the speedy reply.  That is another reason I like this product.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI Just Stopped Working, Project Now Won't Run
« Reply #5 on: February 13, 2014, 12:15:00 AM »
Your attachment doesn't work, but I can see what your issue is. You need to follow proper upgrade instructions mentioned in the ReadMe file. It's a 3 step process:

1. New scene.
2. Delete the entire NGUI folder from the Project view.
3. Import the updated NGUI package.

UIInputValidator is an old script that doesn't exist anymore.

BlitzPackage

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: NGUI Just Stopped Working, Project Now Won't Run
« Reply #6 on: February 13, 2014, 11:43:54 AM »
Thanks so much.  The steps you outlined allowed NGUI to reinstall.

However, now I can't zoom in and out in the game view window, and all the button animations are gone.  Is there anything else that will be missing?  Also, it says (and it seems) that reference scripts are missing for what seems like everything I built.

Please advise.

Thanks again.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI Just Stopped Working, Project Now Won't Run
« Reply #7 on: February 14, 2014, 05:42:27 AM »
Scripts missing is a big problem, and generally occurs when you've copied files from one place to another.

You can't copy things outside of Unity unless you first enable the visible metadata files in Editor settings.

There is no graceful way to fix this once you start working with a project after you've copied things into. Your project now uses wrong reference IDs, and importing a package properly will break things. Your only option is to overwrite files the same way you broke it in the first place (ie: copying it from point A to point B).

None of NGUI's examples will work, but your content will continue to function.

BlitzPackage

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: NGUI Just Stopped Working, Project Now Won't Run
« Reply #8 on: February 14, 2014, 01:24:46 PM »
I have not copied any files outside of Unity.  So, what else can cause this and what are some potential resolutions.

Thanks.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI Just Stopped Working, Project Now Won't Run
« Reply #9 on: February 15, 2014, 01:10:10 AM »
Did you fix all the errors in the console log? If there are errors, things won't work properly.

Other than that... nothing can cause such issues. Try importing NGUI into a brand-new project instead.

BlitzPackage

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: NGUI Just Stopped Working, Project Now Won't Run
« Reply #10 on: February 16, 2014, 08:42:06 PM »
Thanks for your help.  I restored it from an older version (using time machine) and it seems to work.

Thanks again.