API reference
API reference
Select your platform
No SDKs available
No versions available

AutoMatchmakingNGO Class

Extends MonoBehaviour
The class for doing auto-matchmaking for your game when using the Unity Netcode for Gameobjects networking framework.
On Awake() this class will look for an available game room or create a new one if none is found. This room will then be automatically joined and the game session is ready to be started.
This behaviour of auto-matchmaking is best suited for projects in the prototype phase and should be replaced by another matchmaking system once your project is closer to production.

Fields

lobbyName : string
The name of the lobby that will be automatically created when no available game rooms are found to be joined.
Signature
string lobbyName
maxPlayersPerRoom : int
The maximum number of players allowed per game room.
Signature
int maxPlayersPerRoom
maxRetries : int
The maximum number of retries this class will attempt to connect to a game room if a connection attempt fails.
Signature
int maxRetries
retryInterval : Vector2
The interval range, in seconds, from which a random value will be chosen and awaited before attempting a new connection after the previous attempt failed.
Signature
Vector2 retryInterval