Scrollbar extends the built in Unity Scrollbar and adds smooth scrolling, optional auto hide behavior, and arrow button support. It keeps full compatibility with Unity UI while offering modern quality of life improvements.
using UnityEngine;using Evo.UI;public class ScrollbarExample : MonoBehaviour{ public Scrollbar scrollbar; void Start() { // Smooth scroll to 50% scrollbar.ScrollTo(0.5f); // Scroll by +0.1 scrollbar.ScrollBy(0.1f); // Scroll instantly using Unity directly scrollbar.value = 1f; // Scroll to min or max scrollbar.ScrollToMin(); scrollbar.ScrollToMax(); } void Update() { // Example: scroll wheel manually if (Input.GetKeyDown(KeyCode.UpArrow)) scrollbar.ScrollBy(0.1f); if (Input.GetKeyDown(KeyCode.DownArrow)) scrollbar.ScrollBy(-0.1f); }}