Answer the question
In order to leave comments, you need to log in
Unity 3d how to get all the images on the page with the given url and put them in an array?
Good day! I use the WWW(url) class. The question is how to get all the images on the page with the specified URL and put them in an array? It only works for me if I specifically specify the URL of one image, not the site. How can it be "picked out" from the site code? Perhaps there is a method of screening some?
Answer the question
In order to leave comments, you need to log in
Unity has almost nothing to do with it. With www, you can get the entire returned result - the text property. Next, you need to find everything you need in this result. If there is, for example, html code (most likely) - look for all img tags. It can be regular, it can be done manually, it can be fed to a thread to a web page parser.
But there is a chance that you won’t get it that easily - if there is a load via JS / Ajax - www does not do such things.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question