I’m calling a C# script (LitJson) from Jav. Is there an equivalent of “using namespace” in JavaScript so I don’t need to type LitJason.JsonFoo constantly?
Thanks!
I’m calling a C# script (LitJson) from Jav. Is there an equivalent of “using namespace” in JavaScript so I don’t need to type LitJason.JsonFoo constantly?
Thanks!
@import is the counterpart to using
Many thanks! Is “import” documented anywhere? I feel like an idiot for not finding it, and I’m wondering if I missed an important doc somewhere (I’m very newb at Unity so please forgive me!)
Interestingly I found that
@script RequireComponent(Foo)
import LitJson;
gave me a syntax error “expecting EOF” but
import LitJson;
@script RequireComponent(Foo)
worked fine.