- Home /
C# script can't access my JS class, even though its in Plugins
Exactly as the title reads. Please don't suggest I re-write my entire project in C#, I only need this one script to be C# as it relies on a plugin that uses params object[] which is unavailable in JS.
I have the scripts in which my custom class is defined in a folder named Plugins, but I'm still getting the "Type or namespace can not be found" error thrown by C#. I was under the impression that moving it to Plugins would make it available via compilation order.
Any suggestions? :(
a.) This is not an answer.
b.) If you must mix languages in a project, then ensure that any class (C#/JS) that needs to be referenced by a class from the other language (JS/C#) is placed in the Standard Assets or Plugins folder of your project.
Answer by rutter · Sep 17, 2014 at 08:47 PM
A script moved to Plugins will be compiled first. If you moved your C# script to Plugins, it won't be able to see anything compiled after that.