UI Rounded Circular Bar

I want to have a Radial Fill “Progress Bar”, but the end to be ROUNDED, like this image:
(Trying to make nice Flat UI Design)

2993584--222954--RoundedCircle.jpg
A normal Unity Fill Circle has sharp, square corners, like this:
2993584--222955--Screen Shot 2017-03-14 at 2.06.28 PM.png

Thanks!

You’ll have to create a smaller green circle and place it at the end of the arc to fake the rounded corner. You can use Vector3( Mathf.Sin(fillAmount * 6.28f), Mathf.Cos(fillAmount * 6.28f) , 0f) * someScaleValue to place it.

2 Likes

Thank you very much!

1 Like

Hope this YT video is usefull

I know this is an old post, but if anyone else is looking for this - you can create the circle using a LineRenderer and set End Cap Vertices to specify how much curve you want on the endpoint of the line.
7468274--917386--LineRendererEndCap.png

To create a circle (or arc) for the LineRenderer see How to draw lines, circles or anything else using Line Renderer - codinBlack

1 Like