Class CustomHeaderTextureDownload
Texture download that allows modifying the HTTP request before it's sent
Inherited Members
Namespace: GLTFast.Loading
Syntax
public class CustomHeaderTextureDownload : AwaitableTextureDownload, ITextureDownload, IDownload, IDisposable
Constructors
CustomHeaderTextureDownload(Uri, Boolean, Action<UnityWebRequest>)
Constructs an ITextureDownload with a modifier
Declaration
public CustomHeaderTextureDownload(Uri url, bool nonReadable, Action<UnityWebRequest> editor)
Parameters
Type | Name | Description |
---|---|---|
Uri | url | URI to request |
Boolean | nonReadable | If true, resulting texture is not readable (uses less memory) |
Action<UnityWebRequest> | editor | Callback that modifies the UnityWebRequest before it's sent |