LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

DownloadHandlerBuffer.GetContent

public static string GetContent(Networking.UnityWebRequest www);

Parameters

wwwA finished UnityWebRequest object with DownloadHandlerBuffer attached.

Returns

string The same as DownloadHandlerBuffer.text

Description

Returns a copy of the native-memory buffer interpreted as a UTF8 string.

A static function provided for convenience; equivalent to ((DownloadHandlerBuffer)www.downloadHandler).text.