- Home /
WWW Object Timeout not working as expected.
WWW w = new WWW(remotePath + manifestFilename);
float timeout = 5f, timetowait = 1f;
for (float timewaited = 0;
!w.isDone && (timewaited < timeout);
timewaited += timetowait)
{
yield return new WaitForSeconds(timetowait);
}
if (!w.isDone) w.Dispose();
I'm trying to write a timeout for the WWW object, however The Dispose()
function causes an error on Android where the game freezes anyway until the regular Android timeout. Am I doing something wrong or does the Dispose function not cancel the http request on Android as it is supposed to?
Comment
Your answer
Follow this Question
Related Questions
Post a file or image into S3 using unity C# 0 Answers
How to get audioclip from UnityWebRequest 1 Answer
Help searching google! 1 Answer
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers