我试了2019.3.7版本就行了(标签-unity|关键词-串口)

unity连接串口通信:2020.03.26版本出现了在C#中using System.IO.Ports时报错了,就算把.NET Standard 2.0改成.NET 4.x也依旧报错,报的错是:
The type or namespace name 'Ports' does not exist in the namespace 'System.IO' (are you missing an assembly reference?)
这是为什么呢,我试了2019.3.7版本就行了,好奇怪

因为后面版本并没有把串口类放在基础库里
你需要手动去nuget