This is a paid asset, but now you can download SimpleSerialPort for FREE, Please keep in mind this package is provided only for learning purposes or to be able to test before buying the product, NOT FOR COMMERCIAL PURPOSES.
For more detail this asset from the Unity Asset Store: Click Here
SimpleSerialPort v1.11 (Latest version)
“If possible, please buy the package to support the developer”
SimpleSerialPort allows you to communicate with any device via the serial interface. This includes also BLUETOOTH devices. (currently not tested on smartphones)
To establish a serial data connection with Unity is a little bit tricky. There are so many ways to fail and freeze the whole application if you are not doing it right.
This simple package will save you a lot of time and nerves.
Features:
– Works with Unity and Unity Pro
– Command interpreter with delegate to the desired method of your inherited class
– Create commands (scriptable objects) with one click in a new menu of the unity editor
– Thread safe serial reading and dispatching ( unity’s api can be used in events )
– Connection handling ( OnConnection event, OnConnectionLost event, connection timeout in ms)
– Less than 5 minute to setup
Demo scene is included