Unity3d WIfi Direct(P2P)android支持 [英] Unity3d WIfi direct (P2P) android support
问题描述
我正在尝试弄清楚如何制作只能在没有互联网访问的情况下使用Wifi Direct在本地运行的游戏.
I am trying to figure out how to make game which will work only locally using Wifi Direct without any internet access.
这个概念很简单.这将是演示的一种形式,因此我需要一个主/主机设备和其他个连接的设备成为奴隶/客户.当我在主机/主机上按下按钮时,在所有从机/客户端设备中,只更改一个值(字符串或整数). 同时支持20-40个连接的设备.
The concept is very simple. It will be some kind of presentation so I need to have one master/host device and other connected devices will be slaves/clients. When I press button on master/host than should be changed only one value (string or int) in all slaves/clients devices. With support of 20-40 connected devices in same time.
我已经尝试过:
- UNet-仅当使用本地IP连接到某些路由器但不支持Wifi直接通信时,它才有效.
- 我试图找到一些插件,但无法决定选择哪个插件或获取有关Wifi Direct支持的信息.
- 我试图找到其他解决方案,例如蓝牙,但它同时仅支持4-13个连接的设备,但我需要他同时连接大约20-40个设备.
我发现的插件列表:
1.1我不知道它是否支持我所需的功能.
1.1 I do not know if this supports a feature i required.
WifiDirect插件- https://www.assetstore.unity3d .com/en/#!/content/50112
WifiDirect Plugin - https://www.assetstore.unity3d.com/en/#!/content/50112
2.1.该插件有错误,不支持.
2.1. This plugins have errors and have no support.
我想问的问题:
- 1.插件是否支持Wifi Direct?
- 您认为我应该购买2.插件并尝试对其进行修复,并希望我能找到问题并且它可以工作吗?
- 您知道更好的解决方案或任何"解决方案如何解决此问题吗?
我对任何提示都感兴趣,并帮助其工作.
I am interested in any tips and help how to make it work.
非常感谢您的帮助!
JakubKučera
Jakub Kučera
推荐答案
研究后,我意识到了一个可行的解决方案!
After research I have realised a working solution!
统一资产商店: https://www.assetstore.unity3d.com/kr/#!/content/53955
使用视频:视频
插件,我已经在一些Android设备上进行了测试,该插件可用于Wifi Direct,而无需连接到互联网.
此插件支持的功能远不止例如:
This plugin supports much more than that for example:
- TCP
- 客户端/服务器
- 完整的C#2.0本机
- 独立库(DLL)
- 多线程
- 事件驱动
- 支持[二进制/Json]消息数据
- 日志服务器和MySQL示例代码
新功能
- 不可靠的UDP
- 没有MySql的基于MNF Server的WinFrom
我希望它可以帮助其他人!
I hope it helps somebody else!
我要感谢作者及其支持!
And I would like to say thanks to author and his support!
这篇关于Unity3d WIfi Direct(P2P)android支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!