Unity2021.3.11_win_Arduino
https://medium.com/interface-lab/arduino-tutorial-series-connecting-to-unity-eedc48e77087
Arduino Tutorial Series: Connecting to Unity
Connecting a button
medium.com
참고 사이트
1. unity _ Asset

Ardity: Arduino + Unity communication made easy | 기능 통합 | Unity Asset Store
Use the Ardity: Arduino + Unity communication made easy from Daniel Wilches on your next project. Find this integration tool & more on the Unity Asset Store.
assetstore.unity.com
COM 포트를 통해 Arduino를 Unity에 연결하고 싶습니까?
Ardity는 Unity의 COM 포트를 통한 양방향 통신을 허용합니다.
(Ardity는 이전에 SerialCommUnity 라고 불렸습니다 . 궁금하실 수도 있습니다.)
작동시키는 것이 얼마나 간단합니까?
Ardity는 Arduino에서 데이터를 가져오는 두 가지 방법을 지원합니다.
* 메시지 수신기를 만들 수 있으며 Ardity는 Arduino에서 메시지가 올 때마다 OnMessageArrived 메서드를 호출합니다.
* Arduino에서 오는 모든 메시지를 대기열에 넣을 수 있으며 SerialController.ReadSerialMessage () 메서드를 호출하여 대기열에서 다음 메시지를 검색할 수 있습니다
2. 유니티 설정바꾸기

플레이어 - 아더셋팅
**Api Compatibility Level
: .NET Framework로 했더니 오류 다 사라짐.
(다른사람들은 Net 4 혹은 Net2 로했는데 암튼 이것저것 바꿔보고 되는걸로)