I have written a dll in C# to perform several tasks for my game. I can successfully use that dll when I use it from a C# script in Unity. But when I use the dll from Javascript, it gives this error:
Namespace 'MyLibrary' not found, maybe you forgot to add an assembly reference?
I have placed MyLibrary.dll under Assets folder. This is how I access it from C#:
using MyLibrary;
This is how I access it from Javascript:
import MyLibrary;
So, I can use it from C#, but how can I also use it from Javascript?