- Home /
Network.Connect Connect Attempt Timeout
Is there a way to adjust how long Network.Connect attempts to connect before it gives up, right now it seems to attempt for about 8 seconds before giving up if it can't find the host, I was wondering if that time could be made longer?
Comment
Best Answer
Answer by AnaRhisT · Jun 23, 2010 at 03:03 PM
Simply, put a StartCoroutine("functionName");
or, you can use a
//if pressed on connect button or whatever
if(GUI.Button(Rect(25,25,100,100),"Connect")){ yield WaitForSeconds(10); //connect function }
Is it just me or does that code simply "sleep" ins$$anonymous$$d of actually adjusting the timeout?