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

The maximum number of players allowed per game room.
The name of the lobby that will be automatically created when no available game rooms are found to be joined.
The maximum number of retries this class will attempt to connect to a game room if a connection attempt fails.
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.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon