Repeat an animation when the mouse is held down and not released,

When the left mouse button is pressed and held, an animation will be repeated, and the animation will stop as soon as it is released.

How to realize this function?

Hi, take a look to Mouse Event please