Is it possible to access a public var from a jscript when in c?

Hi there,
Just wondering if it’s possible to access a public static var from a Jscript when in c? I have a string sitting in a Jscript that I’d like to be able to grab but I keep getting “does not exist in the current context” when I try to access it.

Here’s the variable in my JScript (named CustomScript)-

public static var ImagePath : string = "path";

And this is how the broken part of my CScript -

string name = CustomScript.ImagePath;

This is the error i get -
`CustomScript’ does not exist in the current context

Anyone know what I’m doing wrong?
Thanks
Pete

Put them both in your Standard Assets folder. It might be an order of compilation issue.

It works to access it in one way but for that to work the UnityScript file must be compiled earlier (see advanced manual on compilation order)
Also, unless that changed and was never documented, C# can’t access JS / Boo on mobile, only the other way round

Hmm, I think I’ll try to work it all into the a script instead, because I am working on mobile.
Cool, thanks!