UnityGLTF
UnityGLTF copied to clipboard
Provide UnityWebRequest Headers options and Post method
Hello there,
First of all, thanks so much for this loader, it is a great contribution!
Can you provide a HTTP headers dictionary as argumento to the Loader object?
I need to provide authentication token to the Web Server:
`
var www = UnityWebRequest.Get(_gltfUrl);
foreach(KeyValuePair<string, string> entry in headersDictionary)
{
www.SetRequestHeader(entry.Key,entry.Value);
}
`
Also, can be there an option to use Post instead of Get?
var www = UnityWebRequest.Post(_gltfUrl, postData);
Thanks in advanced!
Fixed in Pull Request 37
Closed #37 So we need to make sure to get the idea of these changes back in.
Not high priority due to ILoader interface extensibility (close this @blgrossMS)
Feel free to make a pull request