how to create uneven platforms

whats the best way to make uneven platforms for a player to walk on…preferably 2d

Use a mesh collider or several primitives. The 2D side comes from your camera ignoring one axis.