简体   繁体   English

适用于 Android 的 Unity3D 中的 Wifi 直接连接

[英]Wifi Direct Connection in Unity3D for Android

如何使用 wifi direct 统一连接两个 android 设备。

Follow this tutorial to learn how to create a Wi-Fi direct application.按照教程学习如何创建 Wi-Fi Direct 应用程序。

To help you understand some fundamental Android APIs and coding practices, a variety of sample code is available from the Android SDK Manager.There is code for wifi-direct file transfer (WiFiDirectDemo).为了帮助您了解一些基本的 Android API 和编码实践,Android SDK 管理器提供了各种示例代码。有用于 wifi 直接文件传输 (WiFiDirectDemo) 的代码。

you can find the source code for all samples at this location:您可以在此位置找到所有示例的源代码:

sdk/samples/android-version/ SDK/样品/安卓版本/

I suggest you to look at this answer : https://stackoverflow.com/a/39690512/12130325我建议你看看这个答案: https : //stackoverflow.com/a/39690512/12130325

This is a plugin which cost 20-30$这是一个花费 20-30 美元的插件

If you want to make it with a free plugin you can try this one : https://github.com/saltyJeff/UnityWifiDirect如果你想用免费插件制作它,你可以试试这个: https : //github.com/saltyJeff/UnityWifiDirect

It works pretty well too.它也很好用。 And it has only Wi-Fi Direct in it.它只有 Wi-Fi Direct。 No other things like TCP / mySQL server, etc...没有其他东西,如 TCP/mySQL 服务器等...

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

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