- Home /
How do I connect Arduino to unity ?
I am using Unity 2018.3.11f1 version. I saw a bunch of tutorials on Youtube all those tutorials use "using System.IO.Ports" for Arduino scripts. But it doesn't work on the current version I have.
I tried searching an alternative to it by looking up the asset store even the asset store has assets with obsolete code. The Uniduino asset doesn't exist anymore on the asset store.
The only solution I found to this problem was changing my player's API compatibility to .NET 2.0.
Well that didn't work out at all.
Are Arduinos are still compatible with Unity? Is there an alternative to using System.IO.Ports?
Answer by unity_XY9GfkpHMyaikw · Apr 16, 2019 at 10:08 AM
Update: I found the answer Thanks to @xxmariofer
Link to the answer: https://answers.unity.com/questions/1604233/systemioports-missing-for-unity-with-net-4x.html?childToView=1604273#comment-1604273
"you need to set api compatibility level to net 4.x(tested with 2018.3.0f2 version)"
Your answer
Follow this Question
Related Questions
Uniduino, Arduino & Unity 5 3 Answers
Car NOS script not working 2 Answers
JsonUtility 0 Answers
Trying to setbool of animator from another object c# 1 Answer