UnityWebRequestConstructor

Cambiar al Manual
public UnityWebRequest ();
public UnityWebRequest (string url);
public UnityWebRequest (Uri uri);
public UnityWebRequest (string url, string method);
public UnityWebRequest (Uri uri, string method);
public UnityWebRequest (string url, string method, Networking.DownloadHandler downloadHandler, Networking.UploadHandler uploadHandler);
public UnityWebRequest (Uri uri, string method, Networking.DownloadHandler downloadHandler, Networking.UploadHandler uploadHandler);

Parámetros

urlThe target URL with which this UnityWebRequest will communicate. Also accessible via the url property.
uriThe target URI to which form data will be transmitted.
methodHTTP GET, POST, etc. methods.
downloadHandlerReplies from the server.
uploadHandlerUpload data to the server.

Descripción

Creates a UnityWebRequest with the default options and no attached DownloadHandler or UploadHandler. Default method is GET.

The raw constructor is useful for use cases which require detailed custom configuration of a UnityWebRequest. Most use cases will require the attachment of a DownloadHandler, an UploadHandler or both in order to function propertly.

See Also: Get, GetTexture, GetAudioClip, GetAssetBundle, Head, Post, Put, Delete.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961