"WebGL: Interacting with browser scripting" in this section there is a small thing missing.

here : Unity - Manual: Interaction with browser scripting

you guys missed to write one thing in your c# script that is “using System.Runtime.InteropServices;” due to this i lost my half-hour searching solution for this error “error CS0246: The type or namespace name `DllImport’ could not be found. Are you missing a using directive or an assembly reference?

i am pointing this out because, some one in future should not face this problem.

1 Like

Good catch, sorry it wasted your time. I’ll fix the page a.s.a.p.

By the way, if a function shows up as not supported you can right-click on it in Monodevelop or Visual Studio, and use the “Resolve Using…” menu to automatically add the correct “using” function required, like this:

2363253--160346--resolve using.gif