uGUIのほとんどで共通なRectTransformのこと。
public sealed class RectTransform : Transform { }
なので、RectTransformはTransformを継承したクラス。
RectTransform hoge; hoge = transform as RectTransform;
のようにキャストも可能。
RectTransform rectTrans = GetComponent <RectTransform>(); ```` で取得できる。
rectTrans.sizeDelta = new Vector2 (110, 30);
でwidth、heightの大きさを変えられる。
rectTrans.localScale = new Vector3 (110, 30, 1);
で、Scaleの部分が変化する。 <p><span itemscope itemtype="http://schema.org/Photograph"><img src="http://cdn-ak.f.st-hatena.com/images/fotolife/s/shinriyo/20140909/20140909182156.png" alt="f:id:shinriyo:20140909182156p:plain" title="f:id:shinriyo:20140909182156p:plain" class="hatena-fotolife" itemprop="image"></span></p> [asin:4844336703:detail]