- Home /
Question by
aarun10 · Nov 27, 2015 at 10:03 AM ·
listwwwuser interface
How do I store downloaded textures in a list and use them?
So I have downloaded a few images and I would like to put them in a List of textures. As below:
WWW www = new WWW(url); yield return www;
www.LoadImageIntoTexture(texture); textures.Add (texture);
'textures' is the list that I'm adding the images into.
But when I do this:
FileButton.transform.GetChild (0).GetComponent().texture = textures[i];
It says Argument out of range.
I'm fairly new to this so any help would be appreciated.
Comment
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
WWW file:// protocol to list a directory 1 Answer
Visual list of NPCs 0 Answers
Converting WWW to list for instatiation 0 Answers
What is the best way to convert a string list to a class list? 1 Answer