I am making a 2D game in Unity and I want to create an animation that works with any object and takes that object's position into account.
The animation should be a little bounce, basically move it up from its current position and then move it back down to that same position. The problem is when I create that animation and then move the object after, and later play that animation, it goes back to the keyframed location instead of bouncing in-place.
What is the correct way to achieve the goal that I'm describing?