Ramp for stairs causes player to slide down.

What’s the best way to prevent an object from sliding down if stopped, yet not affect its movement if not stopped? I was thinking of checking the collision with the ramp, but I’m not sure what property of the rigidbody to change.

Add a material to the capsule collider attached to your rigidbody. That fixed it for me.