Trying to do an animated sprite sheet using a RawImage. Can’t use an Animator/Animation (at least I don’t think so) because I want to make a countdown timer that’s accurate to the millisecond.
So far I’m stuck on updating the RawImage’s UVRect values. I need to update the X and Y values to show the correct slice of my sprite-sheet. Still pretty new to Unity, the new gui and C# so kinda stuck on how to apply the new values. Any help would be great, thanks.
You can use
yourRawImage.uvRect = new Rect(newX, newY, newW, newH);