Search Unity

RectTransform doesn't have a setter in Unity 4.20

Discussion in 'UGUI & TextMesh Pro' started by HarisKap, Oct 16, 2014.

  1. HarisKap

    HarisKap

    Joined:
    Dec 10, 2012
    Posts:
    20
    The documentation is correct but in C# the Rect in RectTransform doesn't have the setter.

    So its impossible to modify the rect or assign any of the properties such height. Screen Shot 2014-10-16 at 12.41.20.png Screen Shot 2014-10-16 at 12.41.20.png
     
  2. froglord

    froglord

    Joined:
    Oct 7, 2014
    Posts:
    8
    use sizeDelta to set the width and height
     
    GibTreaty likes this.