resizing texturerect on update of animated 2D sprite
Hi, Im trying to animate a chain in 2D which extends in length each frame. I have a spritesheet with each animation sprite and how i have done this in the past (in java without unity) was to manually generate a texture rectangle at the top of the sprite and increase the height of this rectangle each frame until the whole sprite is drawn.
I thought i had a working version of this in unity from years ago but cant find it or remember how i did it at the time. From looking at other similar questions it seems my options are a masking shader (something id rather not get into this early into learning unity) or to pre-generate each frame (which on a high detail animated sprite seems like a expensive solution compared with just setting the texturerect correctly)
is there a better way to handle this? my ideal solution is that unity let me access and modify the texturerect myself but this seems to be impossible and the other solutions seem expensive on performance/storage or more complex than this simple task should need.