08-06-2013, 11:52 AM
If I weren't in vacation now I would send you a demo scene, but here's my project layout for Javascript usage:
(I moved the Curvy folder into Plugins
/Plugins/Curvy/Base
/Plugins/Curvy/Examples
/Plugins/Curvy/Examples/ScriptsAndData
/Plugins/Editor (I moved the editor folder of the Curvy package here)
javascripttest.js (doesn't matter where you're javascript files are located, but they'll need to be outside Plugins)
This kind of problems are related to Unity, not Curvy. And you'll get this trouble with every other package written in C# as well. By having Curvy in a folder called "Plugins" you make sure that Curvy classes are compiled before your own scripts. Otherwise your scripts won't compile, as Curvy classes won't be usable then.
I recommend to read about the details here.
(I moved the Curvy folder into Plugins
/Plugins/Curvy/Base
/Plugins/Curvy/Examples
/Plugins/Curvy/Examples/ScriptsAndData
/Plugins/Editor (I moved the editor folder of the Curvy package here)
javascripttest.js (doesn't matter where you're javascript files are located, but they'll need to be outside Plugins)
This kind of problems are related to Unity, not Curvy. And you'll get this trouble with every other package written in C# as well. By having Curvy in a folder called "Plugins" you make sure that Curvy classes are compiled before your own scripts. Otherwise your scripts won't compile, as Curvy classes won't be usable then.
I recommend to read about the details here.