Author Topic: Import errors, namespace and types not importing  (Read 9310 times)

General1337

  • Guest
Import errors, namespace and types not importing
« on: May 31, 2012, 05:59:31 PM »
Hey guys,
I'm currently trying to evaluate NGUI using Unity Free edition. I'm receiving a ton of errors however as it seems the dlls are not importing properly.



I've tried moving the dlls and compilation order however it still doesn't work. I'm not sure if this is an issue because I am using the free edition of Unity or something else is wrong.
Any help would be greatly appreciated! Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Import errors, namespace and types not importing
« Reply #1 on: May 31, 2012, 07:38:58 PM »
Free edition requires Unity 3.5.2. I don't think Free or Pro version of Unity matters in this case. What version of Unity do you have, and what does it say about the DLL?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Import errors, namespace and types not importing
« Reply #2 on: May 31, 2012, 07:39:21 PM »
P.S. Does it happen in a completely new project when you just import only NGUI?

General1337

  • Guest
Re: Import errors, namespace and types not importing
« Reply #3 on: May 31, 2012, 07:57:19 PM »
I just attempted to make a new project and import only NGUI, it seemed to work (I didn't really do anything with it though) but i'm assuming it compiled properly.

I returned back to my project and created a new scene, I still received errors. I'm not entirely sure if something is conflicting with it or something to do with the compilation order. There isn't really anything that could possibly conflict with it from what I could see except perhaps the standard assets.

I'll keep messing around with it but I'm pretty much in the dark at the moment.
Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Import errors, namespace and types not importing
« Reply #4 on: May 31, 2012, 07:59:03 PM »
NGUI is not compatible with certain plugins. EZGUI, for example. Which ones do you have?

General1337

  • Guest
Re: Import errors, namespace and types not importing
« Reply #5 on: May 31, 2012, 08:03:58 PM »
I don't have any GUI plugins except for NGUI.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Import errors, namespace and types not importing
« Reply #6 on: May 31, 2012, 08:05:37 PM »
Well, make sure the DLL is there, and if for some reason it isn't, move it from the clean project that worked.

General1337

  • Guest
Re: Import errors, namespace and types not importing
« Reply #7 on: May 31, 2012, 08:16:12 PM »
For some reason it seems the project didn't update properly. I cleaned the script assemblies from the main project and that seemed to fix it.
Thanks for the help!

Khalos

  • Guest
Re: Import errors, namespace and types not importing
« Reply #8 on: June 01, 2012, 11:36:01 PM »
Hi, what did you do when you said:

Quote
cleaned the script assemblies from the main project

I'm having the same problem and would love to get it working.

The only non NGUI plugins I've imported are a bunch of the built-in stuff like Character Controller, Terrain Textures and Skyboxes. No other UI plugins.

I have it working no problem in different project, but can't get it working in the one I want.

PhilipC

  • Guest
Re: Import errors, namespace and types not importing
« Reply #9 on: June 04, 2012, 10:36:54 AM »
I am in the process of fixing this atm. It seems that having any scripts inside a plug in folder will cause the compile errors (Unity complication order issue). I will update http://www.tasharen.com/forum/index.php?topic=526.msg2654#msg2654 when i get it working.

NickyLenaers

  • Guest
Re: Import errors, namespace and types not importing
« Reply #10 on: June 20, 2012, 07:16:19 AM »
Is there a fix already? I'm having the same problem for some time now, but it only seems to occur when I import the Character Controller Package (Standard Assets). I also get a warning (not an error) about an operator used in a script attached to the Third Person Controller Prefab. I am able to compile despite this warning, but I'm curious if any of you guys are having the same problem?

A fix would be r-e-a-l-l-y nice!

PhilipC

  • Guest
Re: Import errors, namespace and types not importing
« Reply #11 on: June 20, 2012, 08:37:23 AM »
Unfortunately I was unable to find a fix for this. It seems to be Unity "forgetting" to include the DLL's when compiles code from the Standard Assests folder. The only work around that I know of at the moment is to take all code out of the Standard Assets folder.

themouse

  • Guest
Re: Import errors, namespace and types not importing
« Reply #12 on: June 27, 2012, 11:01:01 AM »
I also started a new project, (I am using the free version ATM) and I am getting the same error.
Plan to buy before release. I am a coder not a modeler so most of the funds are in 3d assets ATM . :D

Anyway long story short, new project with most of the standard assets and nothing else.

Where is this DLL and where do I put it?


thanks

PhilipC

  • Guest
Re: Import errors, namespace and types not importing
« Reply #13 on: June 27, 2012, 11:34:35 AM »
If you have these errors it means you have some code in the Standard Assets folder. Try moving all code files (models textures ect are fine) out of that folder into another generic folder which will get compiled at the same time as the rest of the project.

As I said before this seems to be a issue with how unity compiles and included DLLs while having code in the Standard Assets folder so I have yet to find a better solution.

themouse

  • Guest
Re: Import errors, namespace and types not importing
« Reply #14 on: June 27, 2012, 12:15:55 PM »
No its a new project, no code no changes.

After careful testing adding in one package at a time.
The unity packages that are causing the issue are:

Character Controller
Scripts

Adding them without NGui Free causes no issues.

I'm new to unity so I do not full understand how the unity + mono develop system works yet.
I am not new at MonoDevelop or C#.

When I open an compile the MonoDevelop solutions from within MonoDevelop , I notice errors
on the JS scripts in the standard packages mentioned above.

Remember I am a newb at unity so is this a conflict between the JS and # scripts?