Show / Hide Table of Contents

Class CachedWebRequest

Inheritance
System.Object
CachedWebRequest
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
Assembly: cs.temp.dll.dll
Syntax
public static class CachedWebRequest

Methods

ClearCache()

Removes all elements from the cache

Declaration
public static void ClearCache()

Get(String, Action<UnityWebRequest>)

Send a UnityWebRequest configured for HTTP GET.

Declaration
public static void Get(string uri, Action<UnityWebRequest> callback)
Parameters
Type Name Description
System.String uri

The URI of the resource to retrieve via HTTP GET.

System.Action<UnityWebRequest> callback

Callback will be fired once request is completed

GetAudioClip(String, Action<AudioClip>)

Send a UnityWebRequest configured for HTTP GET.

Declaration
public static void GetAudioClip(string uri, Action<AudioClip> callback)
Parameters
Type Name Description
System.String uri

The URI of the resource to retrieve via HTTP GET.

System.Action<AudioClip> callback

Returns the downloaded AudioClip, or null.

GetTexture2D(String, Action<Texture2D>)

Send a UnityWebRequest configured for HTTP GET.

Declaration
public static void GetTexture2D(string uri, Action<Texture2D> callback)
Parameters
Type Name Description
System.String uri

The URI of the resource to retrieve via HTTP GET.

System.Action<Texture2D> callback

Returns the downloaded Texture2D, or null.

In This Article
Back to top Generated by DocFX