Augmented Reality for UE4

How do I make the animation pause whenever the marker is lost, and continue when the marker comes back into view?


I tried using pause function, but that also pauses the camera feed.