Legacy Documentation: Version 2017.2 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

UnityWebRequest.timeout

public int timeout;

Description

Sets UnityWebRequest to attempt to abort after the number of seconds in timeout have passed.

error returns "Request timeout" when a timeout occurs. No timeout is applied when timeout is set to 0 and this property defaults to 0.
Note: The set timeout may apply to each URL redirect on Android which can result in a longer response.

Did you find this page useful? Please give it a rating: