プロジェクトで Multiplayer Service を利用するには 3 つの方法があります。この 3 つの方法で、必要に応じて異なるレベルで制御することができます。
最初の NetworkManagerHUD を使用する方法は、最高レベルの抽象化、つまり、Service によってほとんどの作業がおこなわれるということです。それゆえ、使うのが最も簡単で、マルチプレイヤーゲームを作成するのが初心者の方に最も適しています。この方法を使うと、ゲームの作成 (creating)、待機 (listing)、参加 (joining)、開始 (starting) など基本的なマルチプレイヤータスクに使用する簡単なグラフィカルインターフェースが提供されます。
2 番目の NetworkServer と NetworkClient を使用する方法は、同じタスクをするためにNetworking High-Level API を使用します。この方法はより柔軟です。提供された例を使用して、基本的なマルチプレイヤータスクをゲーム独自の UI に統合できます。
3 番目の NetworkTransport を直接使う方法では、もっとも柔軟な操作を実行することができます。ただし、通常は Networking High-Level API を使用できないような、基準を満たさない仕様がある場合のみに必要です。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.