矩形の位置、サイズ、アンカー、ピボットの情報
RectTransform は GUI のために使用されるだけでなく、他のことにも使われます。 これは矩形の位置、サイズ、アンカーを記録や操作するために使われており、親 RectTransform にもとづいてさまざまなスケーリングをサポートしています。
anchoredPosition | アンカー基準点に対する RectTransform の相対的なピボットの位置 |
anchoredPosition3D | アンカー基準点に対する RectTransform の相対的なピボットの 3D の位置 |
anchorMax | 右上の角をアンカーした親 RectTransform で正規化された位置 |
anchorMin | 左下の角をアンカーした親 RectTransform で正規化された位置 |
offsetMax | 右上のアンカーを基準にした矩形の右上角のオフセット |
offsetMin | 左下のアンカーを基準にした矩形の左下角のオフセット |
pivot | RectTransform で正規化された位置の周りをに回転します |
rect | Transform のローカル空間で計算された矩形 |
sizeDelta | アンカー間の距離と比較した RectTransform のサイズ。 |
ForceUpdateRectTransforms | Force the recalculation of RectTransforms internal data. |
GetLocalCorners | トランスフォームのローカル空間で計算された長方形の角を取得する。 |
GetWorldCorners | ワールドスペースで計算された長方形の角を取得します。 |
SetInsetAndSizeFromParentEdge | 親の矩形の指定されたエッジにそのサイズを設定しながら矩形の相対的な距離を設定します。 |
SetSizeWithCurrentAnchors | RectTransform で計算された矩形が指定された軸上で任意のサイズにします。 |
reapplyDrivenProperties | RectTransform が呼び出されるイベントは再適用されるためにドリブンプロパティーを持っていることが必要があります |
ReapplyDrivenProperties | デリゲートは reapplyDrivenProperties イベントで使います |
gameObject | このコンポーネントはゲームオブジェクトにアタッチされます。コンポーネントはいつもゲームオブジェクトにアタッチされています。 |
tag | ゲームオブジェクトのタグ |
transform | The Transform attached to this GameObject. |
hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? |
name | オブジェクト名 |
childCount | The number of children the parent Transform has. |
eulerAngles | オイラー角としての角度 |
forward | ワールド空間の Transform の青軸 |
hasChanged | フラグが最後に 'false' に設定されたときから Transform になんらかの変更があったかどうか |
hierarchyCapacity | transform のヒエラルキーデータ構造の transform 容量 |
hierarchyCount | transform のヒエラルキーデータ構造の transform の数 |
localEulerAngles | 親の Transform オブジェクトから見た相対的なオイラー角としての回転値 |
localPosition | 親の Transform オブジェクトから見た相対的な位置 |
localRotation | The rotation of the transform relative to the transform rotation of the parent. |
localScale | 親の Transform オブジェクトから見た相対的なスケール |
localToWorldMatrix | ローカル座標からワールド座標へ変換した行列(読み取り専用) |
lossyScale | オブジェクトのグローバルスケール(読み取り専用) |
parent | Transform の親 |
position | The world space position of the Transform. |
right | ワールド空間の Transform の赤軸 |
root | 階層の一番上の Transform |
rotation | A quaternion that stores the rotation of the Transform in world space. |
up | ワールド空間の Transform の緑軸 |
worldToLocalMatrix | ワールド座標からローカル座標へ変換した行列(読み取り専用) |
BroadcastMessage | ゲームオブジェクトまたは子オブジェクトにあるすべての MonoBehaviour を継承したクラスにある methodName 名のメソッドを呼び出します。 |
CompareTag | このゲームオブジェクトは tag とタグ付けされているかどうか |
GetComponent | ゲームオブジェクトに type がアタッチされている場合は type のタイプを使用してコンポーネントを返します。ない場合は null です |
GetComponentInChildren | GameObject や深さ優先探索を活用して、親子関係にある子オブジェクトから type のタイプのコンポーネントを取得します。 |
GetComponentInParent | GameObject や深さ優先探索を活用して、親子関係にある親オブジェクトから type のタイプのコンポーネントを取得します。 |
GetComponents | GameObject から type のタイプのコンポーネントを「すべて」取得します。 |
GetComponentsInChildren | GameObject や深さ優先探索を活用して、親子関係にある子オブジェクトから type のタイプのコンポーネントを「すべて」取得します。 |
GetComponentsInParent | GameObject や深さ優先探索を活用して、親子関係にある親オブジェクトから type のタイプのコンポーネントを「すべて」取得します。 |
SendMessage | ゲームオブジェクトにアタッチされているすべての MonoBehaviour にある methodName と名付けたメソッドを呼び出します |
SendMessageUpwards | ゲームオブジェクトと親(の親、さらに親 ... )にアタッチされているすべての MonoBehaviour にある methodName と名付けたメソッドを呼び出します |
GetInstanceID | オブジェクトのインスタンス ID を返します |
ToString | Returns the name of the GameObject. |
DetachChildren | すべての子オブジェクトを親オブジェクトから切り離します |
Find | Finds a child by n and returns it. |
GetChild | インデックスから子の transform を取得します |
GetSiblingIndex | 現在の Transform のインデックスを取得します |
InverseTransformDirection | ワールド空間からローカル空間へ direction を変換します。Transform.TransformDirection とは逆の機能になります |
InverseTransformPoint | ワールド空間からローカル空間へ position を変換します。 |
InverseTransformVector | ワールド空間からローカル空間へ vector を変換します。Transform.TransformVector の逆の機能です。 |
IsChildOf | 親の子を変換するかどうか |
LookAt | 対象の Transform を設定し、その方向へと向かせます |
Rotate | Use Transform.Rotate to rotate GameObjects in a variety of ways. The rotation is often provided as a Euler angle and not a Quaternion. |
RotateAround | ワールド座標の point を中心とした軸( axis )で angle 度回転させま |
SetAsFirstSibling | ローカルの Transform リストで、一番最初の順番になるよう移動します。 |
SetAsLastSibling | ローカルの Transform リストで、一番最後の順番になるよう移動します。 |
SetParent | Transform の親を設定します |
SetPositionAndRotation | Sets the world space position and rotation of the Transform component. |
SetSiblingIndex | 指定のインデックスに Transform を移動させます。 |
TransformDirection | ローカル空間からワールド空間へ direction を変換します |
TransformPoint | ローカル空間からワールド空間へ position を変換します。 |
TransformVector | ローカル空間からワールド空間へ vector を変換します。 |
Translate | translation の方向と距離に移動します |
Destroy | ゲームオブジェクトやコンポーネント、アセットを削除します |
DestroyImmediate | Destroys the object obj immediately. You are strongly recommended to use Destroy instead. |
DontDestroyOnLoad | Do not destroy the target Object when loading a new Scene. |
FindObjectOfType | タイプ type から最初に見つけたアクティブのオブジェクトを返します |
FindObjectsOfType | タイプから見つけたすべてのアクティブのオブジェクト配列を返します |
Instantiate | original のオブジェクトをクローンします |
bool | オブジェクトが存在するかどうか |
operator != | 二つのオブジェクトが異なるオブジェクトを参照しているか比較します |
operator == | 2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。 |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.