Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

UnityWebRequest.uri

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public Uri uri;

Description

Defines the target URI for the UnityWebRequest to communicate with.

The passed URI must be a full and absolute URI.

This property can't be set after calling SendWebRequest.

If the UnityWebRequest encounters and follows redirects, this property updates with the URL to which the UnityWebRequest was redirected.

This property works like url but is faster to set because it requires less validation and pre-processing. However, each time you access its value, a new URI instance is created, which is resource-intensive. The recommended best practice is to use this property when you need a URI object and to use url when you need a resulting URL.