Michsky – Docs Michsky – Docs
  • Home
  • Documentation
    • DreamOS
    • Modern UI Pack
    • Motion Titles Pack
    • Dark UI
    • Loading Screen Studio
  • Contact
Michsky – Docs Michsky – Docs
Michsky – Docs
  • Home
  • Documentation
    • DreamOS
    • Modern UI Pack
    • Motion Titles Pack
    • Dark UI
    • Loading Screen Studio
  • Contact

Modern UI Pack

  • Quick Start
  • UI Elements
    • Button
    • Charts
    • Context Menu
    • Dropdown
    • Horizontal Selector
    • List View
    • Modal Window
    • Movable Window
    • Notification
    • Progress Bar
    • Slider
    • Switch
    • Tooltip
    • Window Manager
    • Other Elements
  • UI Manager
  • Examples
  1. Home
  2. Docs
  3. Modern UI Pack
  4. UI Elements
  5. Progress Bar
Updated on February 17, 2022

Modern UI Pack

  • Quick Start
  • UI Elements
    • Button
    • Charts
    • Context Menu
    • Dropdown
    • Horizontal Selector
    • List View
    • Modal Window
    • Movable Window
    • Notification
    • Progress Bar
    • Slider
    • Switch
    • Tooltip
    • Window Manager
    • Other Elements
  • UI Manager
  • Examples

Progress Bar

Author: admin 58 views

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.

Properties

Property Type Function

currentPercent

float

Returns/sets the current percent/value.

decimals

int

Divide the value by the specified decimal number.

isOn

bool

Returns/sets the progress bar state.

onValueChanged

UnityEvent

Process dynamic events on value/percent change.

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
}				
			

How can we help?

A premium WordPress theme with an integrated Knowledge Base,
providing 24/7 community-based support.

Content

© 2022 Michsky