Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

NetworkManager.OnMatchJoined

Switch to Manual
public void OnMatchJoined(Networking.Match.JoinMatchResponse matchInfo);

Parameters

Description

This is invoked when a match is joined.

The default implementation of this starts a client.

class MatchManager : NetworkManager
{
	public override void OnMatchJoined(JoinMatchResponse matchInfo)
	{
		if (matchInfo.success)
		{
			StartClient(new MatchInfo(matchInfo));
		}
	}
}