can't run javascript

Status
Not open for further replies.

iamE

New Member
Member
Oct 11, 2014
5
0
1
27
Parts Unknown
When I try to use a JavaScript plugin I get the error missing #ifdef UNITY_EDITOR. I've read that you have to uncommented something but I don't know how to do that.
 

CorrosionX

Plugin Developer
Plugin Developer
Sep 3, 2014
212
85
18
California
Normal error. You can safely ignore it. I get it on fresh compiling of source last I checked. :)

Something else is wrong if your plugin isn't working.
 
Last edited:

xEnt

Retired Staff
Retired Staff
Sep 6, 2014
48
17
8
uncomment these 2 lines, located in PluginLoader.cs > LoadPlugins()

//foreach (string name in GetJSPluginNames())
// LoadPlugin(name, Plugin.PluginType.JS);


remove both forward slashes, recompile
 
Status
Not open for further replies.