I have this part of a project where I need to get a series of images from a webserver and then make them button images. I looked through the WWW class documentation and it works for one, but how do I get all the images and place on all the buttons. Does WWW have a function similar to Directory.GetFiles because I can’t see it in the docs.
Nope, there is no such thing. That needs to be set up on the server, so you can download a list of images first and then download each of those in turn.
Hey Kity,
We’re doing the exact same thing I think right now haha. I had posted a question earlier about this as one of my scripts was broken with this. You can use them if you’d like, but the errors aren’t fixed in them yet.
I also posted some questions on Unity Answers about loading the Images (There’s a few tricky parts after DLing them all) my questions are here:
This ones exactly what you asked:
Hi Rotavele,
I read your posts and it definitely seems to suit my problem. But I have no experience with php, more of a c# programmer, so atm I am just using the file directory and loading from there. Could you show me your php code so I can have a reference?
I know how to do Steps 2 onwards, in fact I’ve already done so. Also why Image Names instead of Image URLs?