document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. var imageRect = image.GetComponent<RectTransform>();
  2. imageRect.anchorMin = Vector2.zero;
  3. imageRect.anchorMax  = Vector2.one;
  4. imageRect.anchoredPosition = Vector2.zero;
  5. imageRect.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal,Screen.width);
  6. imageRect.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical,Screen.height);
');