position slider?

Many racing games will show the player’s position relative to the level on a map, is there anyway to do this using unity’s built in horizontal slider GUI element? So one end represents one position(I only want to measure the z axis), and the other end represents another, and the buttons position shows the player how close they are to the end of the level (the level is one way only, so perhaps the race track comparison was a bit off). Thanks

Of course. It’s a simple application of a ratio.

Determine your player’s progress through the level as a percentage (playerProgress / totalProgressRequired) and use that as where to display the slider’s control.