Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnityWebRequest.isNetworkError API 已经被弃用 #122

Open
MonoLogueChi opened this issue Nov 29, 2023 · 0 comments
Open

UnityWebRequest.isNetworkError API 已经被弃用 #122

MonoLogueChi opened this issue Nov 29, 2023 · 0 comments

Comments

@MonoLogueChi
Copy link

UnityWebRequest.isNetworkError API已经被弃用,推荐使用 UnityWebRequest.result == UnityWebRequest.Result.ConnectionError代替,建议修改为

#if UNITY_2020_2_OR_NEWER
      if (m_WebRequest.result == UnityWebRequest.Result.ConnectionError)
#else
      if (m_WebRequest.isNetworkError)
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant