I am trying to use a static variable created in a java script inside a C# script but when compiled an error warning says it doesn´t recognize the static variable…
Any idea?
I am trying to use a static variable created in a java script inside a C# script but when compiled an error warning says it doesn´t recognize the static variable…
Any idea?
I don’t think you can, but use the SendMessage command to send the value to the c# script. There are loads of examples on the forums, you should have a quick look around and see…
You can, but you’ll need to have your JavaScript class compiled before the C# class. You can do this by putting it in Standard Assets or Plugins.
Check compilation order in the docs for more info.