How to access Vuforia C# library from Javascript

I found some code which uses Vuforia’s library to switch on the camera’s light in C#


The documentation for this class is here:

When I try this in UnityScript I get

BCE0005: Unknown identifier: ‘CameraDevice’

How should I be calling the above function from UnityScript / JavaScript?

There is a script compilation order in Unity, and to access C# for JS or JS from C# you have to understand and use this order. Check out this page:

Julien, your link is broken. Here’s an answer to the question.