c# - Importing DLL into Unity - Type or namespace could not be found -
i'm working on project using usb interface device (see here), , trying use dll provided in sdk pack within unity application. end goal allow unity access inputs , outputs hardware - functionality provided dll.
i added dll project, , tried access script.
using unityengine; using system.collections; using k8055d; public class dlltest01 : monobehaviour { public k8055d usbhandler; void start(){} }
unity threw me error. error was:
assets/resources/scripts/dlltest01.cs(3,7): error cs0246: type or namespace name `k8055d' not found. missing using directive or assembly reference?
the dll within project's folder, , named 'k8055d.dll', cause of , can dll working games happen make hardware device?
i feel may have .net version unity using i'm not sure can if that's issue.
i've checked docs , dll not .net one. compiled, you'll need use plugin able use unity3d. (you'll need create .net wrapper around native dll code.)
Comments
Post a Comment