How to create a level indicator?

In the attached image, there is a pressure level indicator(red). This is located alongside the pressure value. The input is from a squeezable ball. The different pressure values are indicated while playing the game. I am able to display the pressure values correctly. But I am not able to create the pressure level indicator(red). Please advise.

What's your script to create that level indicator?

–

Currently I am storing the sensor values in a queue & then displaying it in the scene. I am not sure how to create the red thing.

–

1 Answer

1

Perhaps you can look at Creating a Circular Progressbar / Timer - Unity Answers and do the same method except with a simple standing up gradiant rectangle instead of a circular one as in the linked example.