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. Slider
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

Slider

Author: admin 105 views

MUIP is using the native slider that comes with Unity UI, but we’ve added some new cool features into it. For scripting, you can use UnityEngine.UI.Slider.

Saving

You can save the slider value by checking this box. Note that every slider should has its own unique ‘Slider Tag’ value. Otherwise, there might be conflict(s) between sliders.

Properties

Property Type Function
useRoundValue
bool

Shows simplified value when enabled.

usePercent

bool

Adds percent tag when enabled.

mainSlider

UnityEngine.UI.Slider

The main slider source.

onValueChanged

UnityEvent

Process dynamic events on value change.

Scripting

				
					using Michsky.UI.ModernUIPack; // namespace

public SliderManager mySlider;

void YourFunction()
{
   mySlider.mainSlider.value = 25f; // Changing slider value
   mySlider.usePercent = false; // Enabling/disabling percent
   mySlider.useRoundValue = false; // Show simplifed value
}				
			

Radial Slider

				
					using Michsky.UI.ModernUIPack; // namespace

public RadialSlider mySlider;

void YourFunction()
{
   mySlider.currentValue = 25f; // Changing slider value
   mySlider.UpdateUI(); // Updating UI
   mySlider.SliderValue = 25f; // Use this if you have problems with currentValue
}				
			

How can we help?

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

Content

© 2022 Michsky