JS does not recognize C# Identifier (static var)

HI Guys,
I have a static float in C# that my JS script does not recognise. I am using the following code…

///in C#, varScript, define the var.
static float this;




/////then in JS varGetScript, I ask...
varScript.this = x;

I am getting an error tho tha the JS script does not recognize the identifier, varScript.

Any ideas? I placed the C# script in the Editor folder so it is compiled after all JS scripts.

?

Is the variable name actually “this”? If so, that’s a reserved word.

The answer can be found in this thread or more precisely the first link in the reply. Place the C# script either in the “Standard Assets”, “Pro Standard Assets” or “Plugins” folder. Like that the C# script ist compiled first and can be accessed by your UnityScript.

Great.
Thank you.

@Kelso, *This, was just an example.
Cheers