티스토리 뷰

Iot/Arduino

Unity2021.3.11_win_Arduino

잉_민 2023. 5. 11. 20:44
728x90
반응형

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 

https://assetstore.unity.com/packages/tools/integration/ardity-arduino-unity-communication-made-easy-123819

 

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 로했는데 암튼 이것저것 바꿔보고 되는걸로)

 

728x90
반응형
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/02   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
글 보관함
반응형