unity change ui element position code example
Example 1: unity get scrollbar value
// To get the value of a scrollbar, use below
gameObject.GetComponent<Scrollbar>().value;
Example 2: how to hide ui elements unity
GameObject.Find("the object name").SetActive(false);
Example 3: unity how to check object position
if (transform.position.x == 0)
{
print("hi");
}