rectTransform.sizeDelta = new Vector2(50, 50);
How Can I modify the width and height of RectTransform ? RectTransform rt = gameObjectName.GetComponent (typeof (RectTransform)) as RectTransform; rt.sizeDelta = new Vector2 (100, 100);