LoginSignup
23
24

More than 5 years have passed since last update.

Unityで通信対戦ゲームの通信を考える

Last updated at Posted at 2015-03-27

これは何?

ユーザ間の頻繁な交信を目的にコネクションを繋いだ状態でデータを転送したい

Unityで実装するには何がいいの?

P2P(相互接続)

WiFi Direct

  • Android Wi-Fi Peer-to-Peer(接続のみ、ローカルでのデータやりとりはBlueToothを使う必要がある)
  • iOS MultipeerConnectivity

個別にAPIを実装するのでめんどくさい

Unity NetWorkViews

ローカルネットワークで可能?(プロトコルの紹介が見つかりません)
Unity間での相互接続でいいよね?

特徴

  • Android iOS関係なく繋がるはず
  • WiFi DirectではないのでWiFiを同一セグメントに設定して繋ぐので使えない予感しかしない

グローバルで接続

遅延はあるけど、用途によっては問題ない

node.js

SocketIOでWebSocketで繋げるのが定番

Photon Unity Networking

Unityでやるには一番無難なのでは

Google Play Games plugin for Unity

Android,iOSで動作、マッチング機能がGoogle Plusのアカウントだったりと微妙

ServiceやAssetStore

23
24
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
23
24