Deforming meshes in game

Is there a way to flex meshes in real time, such as deform or warp, on a game object, then have it hold the new shape or flex back to its original configuration? Think of pushing on a marshmallow or skin surface. I am new to programming and working with 3D objects so I apologize if this is a basic question. It’s just that I don’t remember seeing in many iPhone video games this attribute being used. Thanks

It’s definitely doable on the iPhone. I would recommend doing it with bones.