Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


isNetworkError

Returns true after this UnityWebRequest encounters a system error. (Read Only)
Read time 1 minuteLast updated 5 days ago

Definition

Warning
Deprecated. UnityWebRequest.isNetworkError is deprecated. Use (UnityWebRequest.result == UnityWebRequest.Result.ConnectionError) instead.
public bool isNetworkError { get; }

Remarks

Examples of system errors include failure to resolve a DNS entry, a socket error or a redirect limit being exceeded. When this property returns
true
, the UnityWebRequest.error property will contain a human-readable string describing the error.
Note: Error-type server return codes, such as 404/Not Found and 500/Internal Server Error, are reflected in the UnityWebRequest.isHttpError property, not the UnityWebRequest.isNetworkError property.