Library:Photon
Appearance
| Developer | Exit Games |
|---|---|
| Platforms | Unity, .NET, native C++ |
| Website | https://www.photonengine.com |
| On this wiki | Facts · Code · Notes · Topics |
Photon (Exit Games) is a commercial real-time multiplayer networking stack (PUN, Fusion, Quantum, Realtime) widely used in Unity games; analysts meet it as Photon3Unity3d.dll with a LoadBalancing/Realtime client talking to Photon Cloud name servers over UDP, TCP or WebSocket.
Overview
Photon products: PUN 2 (Unity, Photon Realtime based), Photon Realtime and Fusion/Quantum (newer Unity networking). Client libraries are closed source but ship as managed assemblies in Unity games, so they decompile easily.
Identifying it
- Assemblies:
Photon3Unity3d.dll(network layer),PhotonUnityNetworking.dll,PhotonRealtime.dll,PhotonChat,Fusion.Runtime.dll(Fusion). - Settings asset
PhotonServerSettingsholds the AppId (a GUID), region and name server host (ns.photonengine.iofor the cloud; port 5058 UDP name server, 5055 master, 5056 game server by Exit Games documentation: Unverified here, check the public docs). - Classes:
PhotonNetwork,LoadBalancingClient,PhotonView,OperationCode,EventCode. - Photon's binary serialisation is named GpBinary (Protocol 1.6 / 1.8 in Photon3Unity3d); the messages start with a magic byte 0xF3 (Unverified, from public protocol write-ups: confirm in a capture).
Notes
Photon AppIds are in client assets by design; do not publish a specific game's AppId.