Table of Contents

Struct UnityWebRequestError

Namespace
TAssetBundle
Assembly
TAssetBundle.dll

Unified error information extracted from UnityWebRequest. This struct is used to normalize network and HTTP errors across different Unity versions.

public struct UnityWebRequestError
Inherited Members

Fields

Success

Predefined success result.

public static readonly UnityWebRequestError Success

Field Value

UnityWebRequestError

isHttpError

Indicates an HTTP protocol error (4xx, 5xx responses).

public bool isHttpError

Field Value

bool

isNetworkError

Indicates a low-level network error (connection failure, timeout, DNS error, etc).

public bool isNetworkError

Field Value

bool

message

Error message provided by UnityWebRequest.

public string message

Field Value

string

responseCode

HTTP response code. Can be 0 for cached or local file requests.

public long responseCode

Field Value

long

url

Requested URL.

public string url

Field Value

string

Properties

IsSuccess

Returns true if the request is considered successful.

  • Network or HTTP errors are treated as failures.
  • responseCode == 0 is treated as success (cached files, local files, or platform-specific cases).
  • Standard HTTP success range: 2xx.
public bool IsSuccess { get; }

Property Value

bool