how to set a game object rect transfrom on the middle left code example
Example: unity position ui element
// To get or set the position of a UI element, see below:
GameObject.GetComponent<RectTransform>().anchoredPosition;
// To get or set the position of a UI element, see below:
GameObject.GetComponent<RectTransform>().anchoredPosition;