Animated tiled sheets on non square UVs

We have a dance floor which is a non-uniform shape with 45 degree corners.


We want to do some simple flipbook animation on it to randomly change the direction of its emissive tiles. Right now it’s a 256 texture and we want to make a simple flipbook animation consisting of 6 frames. Unfortunately all animated flipbook scripts work only on a square image with a square UVs. If I make UVs non-uniform all of them skip frames. Is there a solution for this?

The problem sorted out itsefl - all UVs should have been kept in 0-1 space.