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?
↧