Unity Project での Mono DLL 使用
ネットワーキング概念の概要

ネットワーク リファレンス ガイド

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

ネットワーキングは,非常に大きく,詳細なトピックです。 Unityでは,非常に簡単にネットワーク機能を作成できます。 しかし,それでもネットワーク ゲームの作成に関わる広がりや幅を理解することが最適です。 以降のページでは,ネットワーキング コンセプトの基本原理,およびこれらのコンセプトを使用する際の Unity 固有の実行について説明します。 これまでネットワーク ゲームの作成経験がない場合は,作成前に本書をよくお読みになることを強くお勧めします。

The High Level Overview is a good place to start or to refresh your knowledge of networking in general. From there, the Unity Networking Elements page takes the discussion to Unity’s implementation of the general concepts.

Unity makes extensive use of the Network View component to share data over networks and so it is very important to understand how this operates. One of the functions provided by Network Views is Remote Procedure Calls or RPC. This enables you to call a function on one or more remote machines which may be clients or servers.

Regarding the maintenance of information between networked computers, State Synchronization is a method of regularly updating a specific set of data across two or more game instances running on the network. Another subject is tracking which computer owns or controls which objects in the shared environment. Network Instantiation can be used to handle this task, although there are alternatives you can use when you need more control.

Discovering a computer is sometimes a matter of someone setting up a server machine and then inviting other players directly to participate. Where games offer anonymous or mass participation, a Master Server can be used as a place to advertise a game session and allow people to join. A master server can also use a technique called NAT punchthrough to ensure players can always connect, even when firewalls are in operation.

Reducing the amount of data transferred between computers will tend to improve performance; the page on minimizing bandwidth gives advice on how to achieve these optimizations.

On mobile devices, the Unity networking API is much the same as on desktop machines and so networked games will often work with little or no modification. The Mobile Networking page addresses some of the issues and performance considerations that do occur with mobile devices.

Unity Project での Mono DLL 使用
ネットワーキング概念の概要