Sprite Sheet Playback - Wrong frame order



I’m creating a material fro a 3D model using an animated sprite sheet as the (diffuse) texture.
I created the base image in GlueIT from a sequence of after effects frames. It is a single POT png (2048 x 1536) split into 8columns x 6rows in the sprite editor. Which should (I’d have thought) play from top left to bottom right. The texture is displayed with the correct slices and UVs within the game preview, BUT the frames are played back out of sequence? Not 1,2,3,4,5,6,7,8,9… rather 1,2,3,4,5,6,15,16,9,10…

Can anyone suggest why?
I feel like there is a “force index order” or similar somewhere. But I’m not seeing it in any of the settings.

Turns out I was using a script from here with known errors for multi row sprites.


As I’m new to C# I couldn’t debug it. However if I’d read more I’d have found the corrected script on the same page.

SpriteSheetNG.cs was the one I wanted.