简体   繁体   English

如何将Arduino与Unity3D连接(使用Android设备)?

[英]How to connect Arduino with Unity3D (using an Android device)?

I have found this interesting Project in the Internet and my first question is how to access the data (which is connected via Bluetooth to Android) from within Unity3D. 我在互联网上发现了一个有趣的项目,我的第一个问题是如何从Unity3D中访问数据(通过蓝牙连接到Android的数据)。

https://pauldyan.wordpress.com/2016/01/24/my-vr-bike/ https://pauldyan.wordpress.com/2016/01/24/my-vr-bike/

I have seen that there is an "asset" for Bluetooth but is there a direct way or a way without the Need of buying that asset? 我已经看到蓝牙有一个“资产”,但是是否有直接的方式还是不需要购买该资产的方式?

Regards 问候

Kev 凯夫

You could, but it would involve writing your own library for both Android and iOS. 您可以,但是需要为Android和iOS编写自己的库。

I really don't recommend going this route. 我真的不建议走这条路。 You would have to write hooks for every single native iOS and Android Bluetooth function. 您将必须为每个本地iOS和Android蓝牙功能编写钩子。 Both operating systems would need hundreds of lines of code and several days of testing to get going. 这两个操作系统都需要数百行代码和几天的测试才能开始。

I'd recommend just buying it. 我建议只买它。 The asset is 10 dollars, which is worth the time saved. 资产是10美元,值得节省时间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM