How to Add icon following the edge of the fillAmount image

Is there a way to detect where the edge is of a sprite being radial 360 filled? I have a circular health bar that gets depleted by filling the sprite, but I would like to add “icon” on the top of the bar that follow the edge. Is this possible?

Just like the image below

2996364--223260--imgicon.png

You can place it using the same logic described for this question

Hi @StarManta , Thanks. I’ll try this. Will update once I finally solved this

Hi @StarManta , I tried your code and the icon is now moving circular but it’s not at the edge of the fill. How can I solve that problem?

edgeRect.localPosition = new Vector3 (Mathf.Sin (fillAmount * 5.28f ), Mathf.Cos (fillAmount * 5.28f)) * 52;