Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

UnityWebRequest / WWW buffer size

Discussion in 'Connected Games' started by bakno, Aug 16, 2019.

  1. bakno

    bakno

    Joined:
    Mar 18, 2007
    Posts:
    566
    Hi

    Is it possible to modify the size of a UnityWebRequest buffer?

    I am trying to get text from a a single PHP page asynchronously, and perform tasks as soon as they are received.

    Unfortunately, Unity only provides access to what has been received either if the connection is closed or if the information received exceeds the buffer size. Therefore, I am sending extra 80K space characters to exceed this size and force Unity to let me get what has been received so far.

    Thank you
    Andres
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    8,776
  3. bakno

    bakno

    Joined:
    Mar 18, 2007
    Posts:
    566
    Thank you Joe. Already tried that and it did not work.
     
  4. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    2,607
    If you want to process data on the fly, you should be using DownloadHandlerScript.
     
unityunity