T
T
TheTalion2017-07-04 17:36:37
Computer networks
TheTalion, 2017-07-04 17:36:37

How to assign timeout to UnityWebRequest?

The help has a timeout field for UnityWebRequest ( https://docs.unity3d.com/ScriptReference/Networkin... ) but I can't get it in the code. What needs to be done to appoint him? And if it is impossible to assign, then how long does the connection initially hold depending on the platform (interested in webgl, ios, android)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniil Basmanov, 2017-07-04
@TheTalion

Just take and assign:

var request = new UnityWebRequest();
request.timeout = 10;

Maybe you have an old version of the unit, where there is no timeout yet?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question