技術メモ Unity - System.IO.Ports が使えない Project Settings → Player → Other Settings → Api Compatibility Level を .Net Framework に変更すれば解決できる。