Hey guys,
So I have a public Texture array that I am loading an image sequence into.
I have to load it manually rather than loading it in at runtime through resource.load, as this way stalls the game for several seconds while it loads into the array.
I am selecting the the entire image sequence and dropping it onto the array in the inspector.
Up until now they have all been loading in in order and I have had no issues, but for some reason today, when I have gone to load in a new sequence (I am testing different image compression for the image sequence), they have loaded in a completely random order.
I have gone back and tried loading in my old sequences to test if it was to do with the way it was reading a file type. I have also created a new project with a new script that only has the public texture array in it, to remove any potential interference from other functions in my script. Neither of these have fixed the issue.
I have done some research and I see there is a way of sorting an array after it has been loaded in, but this is also done at runtime and presents the same issue as using resource.load - its stalls the game while the array is sorted.
Is there anything I am missing here?? It seems strange to me that this was working fine and then suddenly not.
Any help would be much appreciated!