Pausing a Mathf.Lerp


Is it possible to pause a Mathf.Lerp method? (same for Vector3.Lerp and .Slerp stuff)

I mean pausing it, not stopping it using a break statement.

The practical effect of this is being able to pause a game while a Lerp is running and keep the Lerp going after resuming the game.

The Lerp methods expect a float value that determines the actual interpolated “position” value between the “from” and “to” value. If you stop increasing/decreasing that value you in effect “pause” the Lerp function. It will then always return the same value until you start increasing/decreasing it again.