Decoupling Matchmaking Logic with Photon Custom Room Properties
Stop using concatenated strings for matchmaking. Learn how to use PhotonEngine's custom room properties to create flexible, skill-based matchmaking in Unity.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Stop using concatenated strings for matchmaking. Learn how to use PhotonEngine's custom room properties to create flexible, skill-based matchmaking in Unity.
Interest groups reduce Photon bandwidth by delivering messages only to subscribed clients, but a 255-group limit per client and version-specific plugin APIs require careful handling.
When Photon Realtime refuses to connect or drops immediately after ConnectUsingSettings(), a structured diagnostic approach can pinpoint the issue. This guide lists common causes, provides ordered checks, offers fixes tied to findings, and defines escalation criteria for Unity developers.
Use Photon Realtime’s lobby‑visible custom properties to perform skill‑based matchmaking without a separate lobby. Set <code>CustomRoomPropertiesForLobby</code> on room creation and filter with <code>ExpectedCustomRoomProperties</code> in <code>OpJoinRandomRoom</code>.
Use Photon Realtime Interest Groups to filter updates inside a single room. Assign networked entities to group IDs and have clients subscribe only to relevant groups to cut bandwidth and CPU without splitting the room.
Server-authoritative Area of Interest in Photon Fusion filters NetworkObject updates by spatial proximity. This architecture note covers minimal design, trust boundaries, and operational checks.
Use custom room properties and JoinRandomRoom filters to match players into the right Photon Realtime room without listing every lobby entry.
Stop sending every player's position to every client. Use Photon Realtime Interest Groups to subscribe only to nearby grid cells.
Find out how to use Photon Realtime’s custom room properties for dynamic matchmaking—set criteria on room creation, query with JoinRandomRoom, and keep everything inside Photon’s fast server. Includes a Unity example, trade‑offs, and next steps.