Quantcast
Channel: Questions in topic: "webrequest"
Viewing all articles
Browse latest Browse all 387

WWW Object Timeout not working as expected.

$
0
0
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?

Viewing all articles
Browse latest Browse all 387

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>