皆大欢喜 发表于 2022-8-28 10:27:27

Ardity Arduino + Unity communication made easy 1.1.0



How does it work?
You need to add one of Ardity's prefabs to your scene, you configure it with the COM port your Arduino is hooked to, and tweak other config options if you want.
This prefab will do all the thread management, queue synchronization and exception handling for you. It's that easy.

There are several included scenes that show how to read/write data from/to a serial device, so you can start from the samples.

How simple is it to get it working?
Ardity supports two ways of getting data out of your Arduino:
* You can create a message listener, and Ardity will invoke its OnMessageArrived method each time a message comes from Arduino.
* It can put every message coming from Arduino into a queue, and you can retrieve the next message from the queue by invoking the SerialController.ReadSerialMessage() method.

Other features include:
* Using your own custom delimiters for the messages. Defaults to the newline character `\n`.
* Notifying of connect/disconnect events.

页: [1]
查看完整版本: Ardity Arduino + Unity communication made easy 1.1.0