Weird animation curves issue

Even when My keyframes have the same value on the timeline, the unity generates these outlandish curves.

keyframe values 1:

too keyframe values 2:

With these values I expect to see a straight line, but I get this:

I can fix it by changing the tangents to linear:

However this is a waste of development time. Does anyone have a workaround thats more time efficient?

Setting the tangent is the correct thing to do. I usually use Flat as it gives a smoother transition to the straight line.

Bump

There’s no reason to bump. This is the expected and desired behaviour of the animator. I and I assume many people using unity animations expect the curves to do this.

It’s really not a big deal to have to select all the keys at once and set all they tangents to flat when you want them flat.