Mirror Networking

Prerequisites

Mirror Networking support requires Humanoid Control v3.0 or higher.

Setup

In order to use Mirror Networking in your project. You need to import the Mirror Networking package first from the asset store.

After this, go to the Edit Menu->Preferences. Humanoid Control will check the availability of the package and the Mirror Networking option should appear in the Networking Support property:

When Mirror Networking is selected for Networking Support, networking support components like the Networking Starter and Networking Transform should adapt automatically to Mirror Networking.

The Grocery Store Networking demo scene will now support Mirror Networking.

Networking Starter

When using Mirror Networking, the Networking Starter component has the following options:

Auto StartWill automatically start a Host or Client depending on the Role parameter.
Use Role FileWill use an role file specifying the networking role (Host or Client) and server IP address.
Role File NameThe name of the Role File. The Role File will be found in Application.dataPath.
Server IP AddressThe ip addres of the server.
Set Role in FileWill generate a Role File in Application.dataPath. using the specified role and server IP address.
Send RateThe number of updates per second communicated through the network.