Unity logo
取消
购物车
应用
Sell Assets

11000+款5星资源

8.5万+用户参与评分

10万+社区成员鼎力支持

每款资源都经过 Unity 审核

首页
工具
网络
1/6
Direct Connection Matchmaking is designed to allow direct connection matchmaking through the use of UPnP, and a MySQL based matchmaking server.

Advantages:

• Establishes a direct connection if the host's router supports UPnP (The vast majority do).
• Direct connection bypasses Unity's relay servers, which saves you money and reduces latency.
• Only a MySQL server is needed to facilitate matchmaking, which is cheap / free compared to other server / database types.
• If the host's router doesn't support UPnP, the Unity relay service will be automatically used.
• MySQL database PHP code is secure and protected against SQL injection. MD5 hashing is used for transmitted data. Passwords for servers are never sent or stored in plain text.
• Documented API and instruction manual.
• Tested on Windows standalone and Android builds. It should work on other build platforms except WebGL.

How it works:

1. The host searches for a connected UPnP compatible device (router) when starting a match.
2. If found, a suitable port is determined and opened using UPnP.
3. The data needed for clients to join the match is sent to the MySQL server and listed.
4. Clients query the MySQL server for a suitable match and join through direct connection.
5. If a UPnP compatible device is not found, then a match will be created using Unity’s relay servers.
6. Both types of matches can be joined.

What is needed:

• A server running MySQL, and with PHP access.

Direct Connection Matchmaking

(暂无评分)
48 users have favourite this asset
(48)
$5
席位
1
更新的价格和增值税在结算时计算
退款政策
该资源受Unity资源商店退款政策约束。有关详细信息,请参见《最终用户许可协议》(EULA)中的第2.9.3节。
安全结账方式:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
许可证类型
文件大小
858.7 KB
最新版本
1.1
最新发布日期
2018年7月9日
原始 Unity 版本
2018.1.3
高品质资源
11000+款5星资源
深受用户信赖
8.5万+用户参与评分
强大的社区支持
10万+社区成员鼎力支持
Unity logo
语言
反馈
合作伙伴计划
合作伙伴
USD
EUR
Copyright © 2025 Unity Technologies
所有价格不包含税
USD
EUR