uGUI accessing the Rect or transform

How do you access the rect or transform feature of a GUI element to be able to position and rotate by script

1 Answer

1

RectTransform rt = GetComponent();
rt.position = new Vector3(x,y,z);