Page 2 of 2

Can't import LoveHate into JavaScript code?

Posted: Tue Apr 28, 2015 2:18 pm
by Darryl
Sounds great, thank-you!

Can't import LoveHate into JavaScript code?

Posted: Tue Apr 28, 2015 4:19 pm
by Tony Li
More info on this:





Unity is a bit weird about editor scripts in the Plugins folder. There's no difference between Love/Hate 1.0.2 and 1.1 in this regard. My previous test was misleading. You have two options:





1.  You can move the editor scripts into Assets/Editor. This is best if you'll be editing scripts in the Plugins folder frequently, since this will force a recompile of the runtime and editor scripts, which may cause the error message to appear.





2. Or you can just move "Pixel Crushers" under Plugins and leave it otherwise untouched. It may work immediately. Otherwise, exit Unity and get back in. In this case, the files in Plugins will have all been compiled previously, so the custom editors should work. This is best if you won't be editing scripts in the Plugins folder frequently.