Bluetooth Classic Unity .NET

So in order to get the full access to the .NET library which I need in order to use Bluetooth [classic] for PC standalone in Unity, you have to be sure to change the User Settings/Preferences so that it will include the full .NET and not just a subset of it during build!

Good to know! Strange that it was actually tricky to figure out — the error message was not clear at all basically, so you had to rely on searching for a solution and wading through the various other solutions that related to the ambiguous error but not to this actual issue.

Also, interestingly, there is not a Unity Asset that I see available for classic Bluetooth for PC standalone — there a few for BLE and/or Bluetooth on mobile devices. Interestingly, I was specifically looking for how to access Bluetooth between my pc and an arduino equipped with hc-05 or hc-06. After writing what I thought should work using the NET framework in Unity, but finding that it did NOT manage to actually open the port even after pairing successfully, and so some other application had to open it first, I did track down an amazing resource.

Dan Wilches Serial Communication Unity project is currently on GitHub — though it would make an incredible Unity Asset: https://github.com/dwilches/SerialCommUnity

Leave a Reply

Your email address will not be published. Required fields are marked *