Unity 6.3
0 онлайн 21 гостей 3 в системе
Вход

DownloadHandlerBuffer Constructor

Declaration

public DownloadHandlerBuffer();

Описание

Конструктор по умолчанию.

using System.Collections;
using UnityEngine;
using UnityEngine.Networking;

public class Example : MonoBehaviour { IEnumerator Start() { using (var uwr = new UnityWebRequest("https://unity3d.com/", UnityWebRequest.kHttpVerbGET)) { uwr.downloadHandler = new DownloadHandlerBuffer(); yield return uwr.SendWebRequest(); Debug.Log(uwr.downloadHandler.text); } } }