TimeoutSec
Namespace: SynicSugar.MatchMake
Class: MatchMakeManager
public ushort timeoutSec
Description
This time is from the start of matchmaking until the the end of matchmaking(= just before preparation for p2p connect).
If that time passes before users start p2p setup, the matchmaking APIs return false as Timeout.
When we need the more time than 10 minutes for timeout, we can set TimeoutSec directly.
If call SetTimeoutSec after matchmaking has started could cause bugs, so set this in the Editor or call SetTimeoutSec before matchmaking.
using SynicSugar.MatchMake;
public class MatchmakingConfig : MonoBehaviour {
public void ChangeConfig(){
//5min
MatchMakeManager.Instance.timeoutSec = 300;
}
}