fixed array vs resources.load for 1000+ sprites MOBILE

I’m making a simple quiz like app with a sprite shown one at a time, and clicking some choices, and then new sprite is swapped in. Very simple app with nothing intensive.

If i create a fixed array in the editor and stick 1000+ sprites in it and enter play mode, and all i do is reference the images, is this feasible? will it overload the phones memory?

It’s much easier for me to design and develop my app if i use a fixed array, because i can access it in code nicely. I’ve never really used resources.load but since it accesses the hard drive theres no fear of overloading memory.

I’m actually not sure about this, if i create a fixed array with 1000 sprites and starting play mode, will unity automatically allocate all the memory for the 1000 sprites possibly overflowing memory, or will it reference the sprites on the harddrive?

Your app will crash. Do not use arrays of sprites. I’ve been dealing with this issue over the past few weeks and I can tell you that with sprites you want to get them in and out of memory as fast as possible. Putting them in a resources folder will work until the total memory taken by each asset decompressed in memory exceeds 2gb. I’d recommend StreamingAssets and loading them just before you need them.