Async task for Unity in C#
- Create a new object:
AsyncTask asyncTask = gameObject.AddComponent<AsyncTask>(); - Set your URL:
SetUrl - (Optional) Add query parameters:
AddQueryParams - (Optional) Set the code you want to run before sending WWW request:
Before - (Optional) Set the code to do with the progress:
Progress - (Optional) Set your callback:
After - Start the task:
Start