Skip to content

FAQ

No. Upload StandardFirmata once from the Arduino IDE examples, and Serial Input Bridge discovers the board’s pins and sets them up from Unity. See Upload Firmata.

Any board that can run StandardFirmata: Uno, Nano, Mega, Leonardo, Micro and compatible boards. Boards that can’t run Firmata, such as many ESP32 setups, can use the custom text protocol with your own sketch. See Compatibility.

Unity 6, which the package is built on, and Unity 2021.3.18 or newer with a few extra steps. See Unity 2021.3 setup.

Does it work in a built game, or only in the Editor?

Section titled “Does it work in a built game, or only in the Editor?”

Both. It works in the Editor and in standalone builds for Windows, macOS and Linux. It doesn’t work on Android, iOS, WebGL or consoles, because those platforms have no serial port access from Unity.

Serial ports (System.IO.Ports) only exist under the .NET Framework API level, and Unity defaults to .NET Standard. Tools > Serial Input Bridge > Fix API Compatibility Level switches it for you. See this error page.

Is the Arduino a real Input System device?

Section titled “Is the Arduino a real Input System device?”

Yes. Each input pin becomes a control (D2, A0, …) on a device in Unity’s Input System. You bind it in an Input Actions asset like a gamepad button or stick, and it works with rebinding, control schemes and PlayerInput.

Can Unity control things on the board too?

Section titled “Can Unity control things on the board too?”

Yes, with the Firmata transport: digital outputs (LEDs, relays), PWM outputs (dimming, motor speed) and servos. Use the DigitalOutputHelper, PwmOutputHelper and ServoOutputHelper components, or call SerialManager from code.

Yes. Send lines like D2:1;A0:512 and use a profile with the Custom Text transport. The package can generate a matching sketch and profile for you. See Custom text protocol. Outputs need Firmata.

No. The AnalogInputEvent and DigitalInputEvent components turn inputs into UnityEvents, and the output helpers have methods you can pick from the Inspector. Code is optional: see the API reference.

The Asset Store only accepts uploads from newer Unity versions, so the 2021.3 package is sent on request. Use the 2021.3 package request form with your invoice number.

Yes. The Board tester connects to your board from Chrome or Edge and shows its inputs live, for both Firmata and custom text sketches.

Why does my button read pressed when it’s released?

Section titled “Why does my button read pressed when it’s released?”

Buttons are expected between the pin and GND, using the internal pull-up, so a pressed button reads LOW. If yours is wired to 5V with a pull-down resistor instead, turn off Digital Active Low in the profile.

Check Troubleshooting and the error message pages, or contact us.