Progress Bar

You can use progress bars as a health bar, mana bar, loading bar and so on. You can tweak the settings via inspector, but you can also change current percent or speed from your script.

API / Scripting

using Michsky.UI.ModernUIPack; // namespace

public ProgressBar myBar; // Your pb variable

void YourFunction()
{
   myBar.currentPercent = 50f; // set current percent
   myBar.speed = 2; // set speed
   myBar.invert = true; // 100 to 0
   myBar.restart = true; // restart when it's 100
   myBar.isOn = false; // enable or disable counting
}
On this page