Creating a smooth gradient animation

I need to create a smooth animation for gradients moving left to right that are compatible with any sequence. I have tried a few solutions that I found on the DevForum but many don’t seem to work for any sequence, rather just a rainbow gradient, and others don’t seem very efficient. Many players in-game will have these gradient animations in their name tags so I’m concerned about the memory usage.

What’s the best approach?

Hey there, I think I understand your question, but do you think you could provide a visual of what you want to achieve?

I would use a UI gradient to get the initial gradient, then a tween to animate the offset property.