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 6 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 _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 _isHttpError property, not the _isNetworkError property.
Additional Resources: _responseCode, _isHttpError