June 2017
Beginner to intermediate
336 pages
8h 44m
English
Connecting with Web API and fetching the data to our application can be done in several ways. Like other projects we have done in previous chapters, we will UnityWebRequestto communicating with our backend services.
Once data gets downloaded by the DownloadHandler, we need to convert it from the JSON response to Product. The JsonUtility helps in that conversion.

Here is the APIConnector class implemented with UnityWebRequest.
string AssetAPIURL = "http://<<servicename>>.azurewebsites.net/api/assets"; ...Read now
Unlock full access