Score bar to next level help

So I was wondering if anyone knew how to make a score bar like this. Like showing how close you are to the next level?

Yes: use a UnityEngine.UI.Image object and set its type to “Filled,” then drive its .fillAmount member.

https://docs.unity3d.com/ScriptReference/UI.Image-fillAmount.html

I kinda like this idea, could you do it with like the blocks as in the img? Or can you just use images?

Hi I was blocking the cost I put my bar in another GameObject and I increased the Scale.

public class ScaleBarScript : MonoBehaviour
{
float scaleX;

void Update()
{
scaleX = ScoreScript.barSize;
transform.localScale = new Vector3(scaleX, 1.5f,1);
}
}
[/code]

And I have another script with the variable static barSize

It’s not very optimal but … :wink:

You can also try the events
http://unitylore.com/articles/unity-event-messaging/
I have not tested