unity get scrollbar value

C#
// To get the value of a scrollbar, use below
gameObject.GetComponent<Scrollbar>().value;
Source

Also in C#: