modesttree / Unity3dAsyncAwaitUtil

A bunch of code to make using async-await easier in Unity3D
MIT License
454 stars 120 forks source link

warning CS0618: UnityEngine.Networking.UnityWebRequest.Send() is obsolete #4

Open joshrickert opened 6 years ago

joshrickert commented 6 years ago

Hey, really cool utility! Makes it really painless to use the new async/await features.

I noticed when I run my game I get the following warning in the console:

Assets/Plugins/AsyncAwaitUtil/Tests/AsyncUtilTests.cs(213,27): warning CS0618:
`UnityEngine.Networking.UnityWebRequest.Send()' is obsolete: `Use SendWebRequest.
It returns a UnityWebRequestAsyncOperation which contains a reference to the WebRequest object.'
s-ol commented 5 years ago

Just switch to .SendWebRequests(), it works the same way. Only the example would have to be updated.

IanEFSG7 commented 4 years ago

The name 'SendWebRequests' does not exist in the current context

Swagat47 commented 4 years ago

Actually its just 'SendWebRequest' - there is no 's'.