Version: 2020.3
言語: 日本語

UnityWebRequestConstructor

マニュアルに切り替える
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);

パラメーター

url UnityWebRequest が通信する対象の URL 。 url プロパティーを通じてアクセスできます。
uri フォームデータが送信されるターゲット URI
method HTTP GET, POST, etc. methods.
downloadHandler Replies from the server.
uploadHandler Upload data to the server.

説明

デフォルトのオプションと UnityWebRequest を作成し、DownloadHandler または UploadHandler をアタッチしません。デフォルトのメソッドは GET です。

生のコンストラクターは UnityWebRequest の詳細なカスタム設定が必要な場合に便利です。ほとんどの場合、プロパティーが機能するために DownloadHandlerUploadHandler 、またはその両方のアタッチが必要になります。

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

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