Author Topic: Unity 5.1.2f1 and NGUI 3.9.2 script errors  (Read 2439 times)

luggage

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Unity 5.1.2f1 and NGUI 3.9.2 script errors
« on: August 22, 2015, 08:57:57 AM »
Hello

I'm pretty new to Unity and NGUI.  I've downloaded 3.9.2 and imported it but when I go to load up one of the tutorial scenes (or any of them in fact) I get...

"All compiler errors have to be fixed."

When I click the UI Root the UI Root and UI Panel script says "the associated script can not be loaded. Please fix any compiler errors and assign a valid script".

Any ideas?  It's bound to be me but I'm not sure what.

Thanks!

luggage

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: Unity 5.1.2f1 and NGUI 3.9.2 script errors
« Reply #1 on: August 22, 2015, 09:34:27 AM »
On further investigation it seems to be something to do with default parameters in mono develop.  I've set the project to use Mono \ 4.0 and rebuilt all but I still get the same issue.

luggage

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: Unity 5.1.2f1 and NGUI 3.9.2 script errors
« Reply #2 on: August 23, 2015, 03:27:31 PM »
Sorted it finally.  In monodevelop you need to set the projects to use mono\4.0m and for some reason it had lost all the needed references somewhere down the line.