I am trying to get the width of an image in Unity 4.6.
The component it’s under is Rect Transform, but I can’t find anything in the documentation, giving me the script to access or modify it.
Above answers are correct but there’s special cases where if you use stretching. The width and/or height of the RectTransform.rect and RectTransform.sizeDelta may be <= 0.