unity set scrollbar value code example
Example: unity get scrollbar value
// To get the value of a scrollbar, use below
gameObject.GetComponent<Scrollbar>().value;
// To get the value of a scrollbar, use below
gameObject.GetComponent<Scrollbar>().value;