Products for USB Sensing and Control
Products for USB Sensing and Control

Unity and Phidgets - Older Versions

Using Phidget with Older Versions of Unity


by Phidgets Education

Introduction

If you've visited our Unity Tutorial, but you have an older version of Unity, you've come to the right place. Make sure you have your Unity version handy and scroll down for more information.

Version 2018.3.x and higher


After creating a new project, right-click in the Assets window and select Import New Asset...


Go to C:/Program Files/Phidgets/Phidget22/ and import Phidget22.NET.dll from the list:


After importing, simply reference Phidget22 in your C# scripts.

Version 2018.1.x to 2018.2.x


After creating a new project, right-click in the Assets window and select Import New Asset...


Go to C:/Program Files/Phidgets/Phidget22/ and import Phidget22.NET.dll from the list:


Click on the new import and you will see an error in the Inspector window.


To fix this error, navigate to Edit > Project Settings > Player.


Find Configuration > Scripting Runtime Version in the settings and click on .NET 4x Equivalent.


After restarting Unity, your project will no longer have any errors.


You can now reference Phidget22 in your C# scripts.

Version 2017.x and lower


The first step is to identify the version of the Phidget libraries installed on your machine. You can do this by opening the Phidget Control Panel and navigating to Help > About Phidget Control Panel


After you've identified the version, download the appropriate file from this site.


After downloading and extracting the file, navigate to your project and right-click in your project view to select Import New Asset...


Navigate to /phidget22-windevel/lib/dotnet/net20 and import Phidget22.NET.dll


You can now reference Phidget22 in your C# scripts.

Conclusion

Now that you know how to add Phidgets to your older Unity projects, continue with the Unity Tutorial.

If you have any questions, email us at education@phidgets.com.