Can't import LoveHate into JavaScript code?

Announcements, support questions, and discussion for Love/Hate.
Darryl
Posts: 6
Joined: Mon Apr 27, 2015 8:49 pm

Can't import LoveHate into JavaScript code?

Post by Darryl »

Sounds great, thank-you!
User avatar
Tony Li
Posts: 22093
Joined: Thu Jul 18, 2013 1:27 pm

Can't import LoveHate into JavaScript code?

Post 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.
Post Reply