2D transform position animation from anywhere to an absolute position

In my 2D game I want to animate a gameobject’s position from wherever it is to an absolute position using the animator - i.e., the starting position varies, but the end position is fixed, say 0,0 for this example.

I’ve had a look at animation parameters, but there doesn’t seem to be a way to reference the parameters in the animation keyframes.

Any ideas how I should go about this? Surely it’s a relatively common task?

You can simply make a new script with a lerp in it’s update function.

Read more about it here (This is a Vec3 lerp but it’s the same for Vec2).