UnitySteer Using C# class into javascript

Hi guys,

So I’m trying to use a C# class from UnitySteer into a javascript that I made, but it’s not working :

Assets/contagionStuff/scripts/pathTest.js(1,8): BCE0021: Namespace 'UnitySteer.PolylinePathway' not found, maybe you forgot to add an assembly reference?

here is how I import it :

import UnitySteer.PolylinePathway;

The PolylinePathway script is located in a subfolder in my project (contagionStuff/UnitySteer/)

Can you tell me what I’m doing wrong? :stuck_out_tongue:

Thanks in advance,

The C# code needs to be located in your “plugins” directory for it to be exposed for JavaScript usage as per: Unity - Scripting API:

Thanks a lot, it work! :slight_smile:

+1 on this answer. The thread may be 3 years old but it just helped me. Thanks guys.