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

Fixed use of obsolete symbols in Unity versions >= 2020.1 #7

Merged

Conversation

Baste-RainGames
Copy link
Contributor

The package has some warnings on Unity versions from 2020.1 and up, as the obsoleted properties UnityWebRequest.isNetworkError and .isHttpError are used. This replaces those with checking if request.result != UnityWebRequest.Result.Success on versions >= 2020.1.

I've kept the support for 2019.2 (the oldest version supported according to the package.json) by checking for the version.

…Request.isNetworkError and .isHttpError got deprecated in that version. The correct way to check the same thing now is to just see if result != UnityWebRequest.Result.Success.
@IvanMurzak IvanMurzak added the enhancement New feature or request label Sep 28, 2023
@IvanMurzak IvanMurzak merged commit ac3a9d6 into IvanMurzak:master Sep 28, 2023
@IvanMurzak
Copy link
Owner

IvanMurzak commented Sep 28, 2023

@Baste-RainGames Thanks, appreciate your help.
I also used your changes in a similar package: Unity-AudioLoader

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants