Skip to content

Mirror transport

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.

EngineStatusNotes
UnityPreviewProvided through cn.indiegp.sdk.unity.mirror-transport.
GameMakerNot applicableGameMaker does not use Mirror.
GodotNot applicableGodot does not use Unity Mirror.
  • The project already uses Unity Mirror.
  • Mirror is v89.0.0 or newer; v90.0.0 or newer is recommended.
  • cn.indiegp.sdk.unity main package is installed.
  • cn.indiegp.sdk.unity.mirror-transport optional package is installed.
  • The main Rooms flow is complete.

Install the main package first:

cn.indiegp.sdk.unity

If the project already uses Mirror, install the optional package:

cn.indiegp.sdk.unity.mirror-transport

Keep the following objects in the scene:

IGPRuntimeManager
IGPMirrorTransport
Mirror NetworkManager

Then 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.

EngineCheckpoint
UnityMirror NetworkManager.transport points to IGPMirrorTransport, and host / client can connect through the IGP room.
GameMakerNot applicable.
GodotNot applicable.
  • Mirror still uses the original transport: check the NetworkManager.transport reference.
  • IGPMirrorTransport cannot 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.