Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

UnityWebRequest / WWW buffer size

Discussion in 'Multiplayer' started by bakno, Aug 16, 2019.

  1. bakno

    bakno

    Joined:
    Mar 18, 2007
    Posts:
    604
    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:
    11,847
  3. bakno

    bakno

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

    Aurimas-Cernius

    Unity Technologies

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