I ve asked similar question sometimes ago.
js is js.and NGUI is cs.I tried the comilation order,but it does not work.I know it could but I just dont exactly know how.
tell me with more word.
I will be thankful.
anyone help me?I prefer js.
Have you read the instructions in the NGUI package regarding setting up NGUI to work with js?
It’s pretty simple to get it sorted.
JohnsonLi, I’m also working in JS in my project and calling also some classes from C#, anyway…when I got compiled everything at that moment I had the error of the compilation order, maybe your problem is about the compilation of your scripts, here http://docs.unity3d.com/Documentation/ScriptReference/index.Script_compilation_28Advanced29.html it is explained ![]()
you new a “Plugins” folder,and put your cs in it,then you can ref em with js,but the js must be outside of Plugins folder.I tried and it worked.
NGUI is harder,because there is an “Editor” folder,and this folder is as special as “Plugins”,it is the problem.I will tried amon s idea.
.
Create a new folder alongside the NGUI folder called Plugins. It should be like this:
NGUI
Plugins
Inside the Plugins folder create a new folder called NGUI. From the Original NGUI folder go in to the Scripts folder and move the following folders to the new NGUI folder inside the Plugins folder:
Interaction
Internal
Tweening
UI
thanks amon.you give me a solution.it works well.but a lot of warnings come with the operations.although warnings dont make a thing,but I hate warnings.