rigid body going up stairs,How to make rigidbody handle stairs

Can anyone help me with a way to make it so my rigid body can smoothly walk upstairs. I found a way, but it only works with box collider and is very janky. I need to find a way for a rigid body with a capsule collider to walk up Pro builder stairs. Any help would be very appreciated. I also have heard of using a floating collider, but I have no clue how to implement that.