M
M
maxmahsudov2020-01-08 12:46:33
Unity
maxmahsudov, 2020-01-08 12:46:33

How to get data from the site and use it in the unit?

I want to get data from Yandex weather for the city of Moscow and use them in my game so that in the game and Moscow there is the same cloudiness, let's say how easy it is to implement, please tell me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2020-01-08
@GavriKos

Make a request to the weather API (for example, https://yandex.ru/dev/weather/ ) using WWW/UnityWebRequest. Parse the result (depending on the API. Most often there is xml or json), do with the result as you please.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question