- Home /
Maximum WWW.text fetch size
Is there a maximum size for how much text WWW.text can fetch?
Comment
Answer by Bunny83 · Feb 22, 2012 at 12:57 PM
Http doesn't specify a limit for Content-Length, however it depends on the software that processes the request. Unity uses an int to store the size, so the limit is at least 2GB (32-bit signed). In addition a string in C# is always stored as unicode (2 bytes / char) and therefore a string should be able to hold 1GB of data.
I guess you usually won't hit this limit since the download would take a while...
Your answer
Follow this Question
Related Questions
Maximum length of a string in Unity3d populated from WWW data 1 Answer
WWW & and strings in C# 1 Answer
If Statement Acting Strange 1 Answer