Steam Lobby Quick Match

Will search for a lobby that matches the configuration; if one is found, it will join it; if not, it will create a lobby that matches the configuration.

Fields and Attributes

Party Wise

public bool partyWise;

If true, the search will account for the current party lobby size when finding a suitable lobby.

Type

public SteamLobbyType type;

The type of lobby to create (Private, FriendsOnly, Public, Invisible).

Distance

public LobbyDistanceFilter distance;

The search distance filter for finding lobbies relative to the user.

Near Values

public List<NearFilter> nearValues;

Metadata key/value pairs are used to weight lobby search results based on proximity to these values.

Numeric Filters

public List<NumericFilter> numericFilters;

Metadata key/value pairs are compared numerically for filtering lobbies.

String Filters

public List<StringFilter> stringFilters;

Metadata key/value pairs are compared as strings for filtering lobbies.

Matching Completed

public UnityEvent<bool> MatchingCompleted;

Event invoked after a match attempt completes. The boolean indicates success or failure.

Functions

Match

public void Match();

Performs a quick match search for a lobby based on the configured filters.

  • Joins a suitable lobby if found.

  • Creates a new lobby if none are found or joining fails.

  • Handles party-wise slot calculation.

  • Invokes MatchingCompleted on success or failure.

Last updated