通常のオブジェクトなどはTransformで座標やスケールを管理しますがUI系の座標などはRectTransformが使用されています。 RectTransform使用時にスクリプトを使ってオブジェクト移動などをさせる時はRectTransformを取得して値を変更させれば可能です。 using UnityEngine.UI ...
The Rect Transform component is the 2D layout counterpart of the Transform component. Where Transform represents a single point, Rect Transform represent a rectangle that a UI element can be placed ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する