I am using Phidget22 1.12 with Unity versions 2021.3.[4f1, 7f1, and 11f1] all versions of Unity are affected. I have tried several older Phidget22 versions with the same results. I have tried the following with no success:
- Rebooting machine
- Powering down, unplugging device, booting up, plugging device back in.
- Plugging in device after Unity starts
- Close Unity
- Open Phidget Control Panel
- Open Encoder Input 0
- Open Digital Input 0
- Open Unity project
- Close Phidget Control Panel (releasing phidget)
- Start Unity project in Editor
Also for further clarification, my project is based on the Unity example code (phidgets dot com/?view=articles&article=UsingPhidgetsWithUnity) which includes the recommended clean-up code:
Code: Select all
void OnApplicationQuit()
{
encoder.PositionChange -= OnPositionChange;
encoder.Close();
encoder = null;
if (Application.isEditor)
Phidget.ResetLibrary();
else
Phidget.FinalizeLibrary(0);
}