Show / Hide Table of Contents

Class EditorWebRequest

The EditorWebRequest is a wrapper around the UnityWebRequest that can work in Edit mode.

Inheritance
System.Object
EditorWebRequest
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: StansAssets.Foundation.Editor
Assembly: cs.temp.dll.dll
Syntax
public class EditorWebRequest

Constructors

EditorWebRequest(UnityWebRequest)

Create new EditorWebRequest instance based on UnityWebRequest.

Declaration
public EditorWebRequest(UnityWebRequest request)
Parameters
Type Name Description
UnityWebRequest request

Properties

DataAsText

The shortcut for UnityRequest.downloadHandler.text.

Declaration
public string DataAsText { get; }
Property Value
Type Description
System.String

UnityRequest

The UnityWebRequest instance that is stored inside EditorWebRequest.

Declaration
public UnityWebRequest UnityRequest { get; }
Property Value
Type Description
UnityWebRequest

Methods

AddEditorProgressDialog(String, EditorWebRequest.HandlerType)

Request will display editor progress dialog with the given title.

Declaration
public void AddEditorProgressDialog(string title, EditorWebRequest.HandlerType handlerType = EditorWebRequest.HandlerType.Download)
Parameters
Type Name Description
System.String title

Editor progress dialog title.

EditorWebRequest.HandlerType handlerType

UnityWebRequest handler type.

Get(String)

Create an EditorWebRequest for HTTP GET. Use the method to create a EditorWebRequest. Set the target URL to the uri with a string or Uri argument. No custom flags or headers are set.

Declaration
public static EditorWebRequest Get(string url)
Parameters
Type Name Description
System.String url

The URI of the resource to retrieve via HTTP GET.

Returns
Type Description
EditorWebRequest

Send(Action<UnityWebRequest>)

Begin communicating with the remote server.

Declaration
public void Send(Action<UnityWebRequest> callback)
Parameters
Type Name Description
System.Action<UnityWebRequest> callback

Communication callback.

In This Article
Back to top Generated by DocFX