Mirror transport
Feature description
Section titled “Feature description”Mirror transport is a Unity-only sub-capability of Multiplayer lobby. It is not a replacement for the main SDK. It lets projects that already use Mirror connect Mirror send/receive traffic to the IGP room data plane.
Supported engines
Section titled “Supported engines”| Engine | Status | Notes |
|---|---|---|
| Unity | Preview | Provided through cn.indiegp.sdk.unity.mirror-transport. |
| GameMaker | Not applicable | GameMaker does not use Mirror. |
| Godot | Not applicable | Godot does not use Unity Mirror. |
Prerequisites
Section titled “Prerequisites”- The project already uses Unity Mirror.
- Mirror is
v89.0.0or newer;v90.0.0or newer is recommended. cn.indiegp.sdk.unitymain package is installed.cn.indiegp.sdk.unity.mirror-transportoptional package is installed.- The main Rooms flow is complete.
By engine
Section titled “By engine”Install the main package first:
cn.indiegp.sdk.unityIf the project already uses Mirror, install the optional package:
cn.indiegp.sdk.unity.mirror-transportKeep the following objects in the scene:
IGPRuntimeManagerIGPMirrorTransportMirror NetworkManagerThen point Mirror NetworkManager.transport to IGPMirrorTransport.
Business code still follows the original Mirror pattern; IGP only connects the underlying transport to the current room.
using Mirror;using UnityEngine;using IGP.UnitySDK.MirrorTransport;
public sealed class MirrorTransportCheck : MonoBehaviour{ [SerializeField] private NetworkManager networkManager; [SerializeField] private IGPMirrorTransport igpTransport;
private void Awake() { networkManager.transport = igpTransport; }}The full sample project is samples/unity/MirrorTransportDemo.
GameMaker does not use Unity Mirror, so this transport package is not applicable.
Godot does not use Unity Mirror, so this transport package is not applicable.
Self-test
Section titled “Self-test”| Engine | Checkpoint |
|---|---|
| Unity | Mirror NetworkManager.transport points to IGPMirrorTransport, and host / client can connect through the IGP room. |
| GameMaker | Not applicable. |
| Godot | Not applicable. |
Troubleshooting
Section titled “Troubleshooting”- Mirror still uses the original transport: check the
NetworkManager.transportreference. IGPMirrorTransportcannot be found: confirm the optional Mirror package is installed.- The room can be entered but Mirror is unavailable: first confirm the main package room flow, then debug Mirror configuration.