Adjuvo/SenseGlove-Unity

SGConnect.dll is gone

Opened this issue · 2 comments

Hi, I'm using your SenseGlove Nova with OculusQuest 2. I've created a project on Unity's VR Core template and imported your demo. Everything works fine, untill i restart Unity. Then gloves are unable to connect anymore, and debug says ,,SGConnect.dll not found". SenseCom launches (or appears if it's already launched) normally. It happens every time with every project. I import the Unity package, load example scenes, it works normally and when i restart Unity the dll is gone (or so says the Debug, the dll is still present in the Plugins/Windows directory and has not been modified by anything). Package reimport does not work. Only thing that sometimes works is creating new project, reinstalling SenseCom, downloading plugin again and then importing. Could you provide any help? Or maybe I'm doing something wrong (I'm importing the package in the same way as provided in your tutorial on Youtube)
Zrzut ekranu 2023-04-28 142845

Hi SoplicaIndustries,

Are you using the latest Unity Plugin (v2.5.0) to set up your project? In that version, we did try to separate the binaries for different platforms into their own folders. This has been done in many other Plugins, and has not caused any issues on our systems.

SenseCom and our Unity Plugin each use their own copy of SGConnect.dll, so re-installing SenseCom should not affect your Unity Plugin. I suspect something is going wrong with loading / unloading the .dll in your Editor. Native dlls are loaded once, then only unloaded when you shut down the editor.

To help diagnose the problem, we will need to know which Unity Version you are using and which platform you are developing on. If possible, I'd like to see the stack trace of the Debug message you've attached. (If you click on the message in the Console, you should see a series of strings at the bottom).

image
@SoplicaIndustries
IDK why but sometimes DLL Execute platforms -> Editor checkmark goes missing. You need to navigate into Plugins/Windows and enable it like in screenshot :)