Unity scrollbar value automatically changing from 0 to 1 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;