矩形の位置、サイズ、アンカー、ピボットの情報
RectTransform は GUI のために使用されるだけでなく、他のことにも使われます。
これは矩形の位置、サイズ、アンカーを記録や操作するために使われており、親 RectTransform にもとづいてさまざまなスケーリングをサポートしています。
Note: The Inspector changes which properties are exposed based on which anchor preset is in use. For more information see Rect Transform and Basic Layout.
anchoredPosition | アンカー基準点に対する RectTransform の相対的なピボットの位置 |
anchoredPosition3D | アンカー基準点に対する RectTransform の相対的なピボットの 3D の位置 |
anchorMax | 右上の角をアンカーした親 RectTransform で正規化された位置 |
anchorMin | 左下の角をアンカーした親 RectTransform で正規化された位置 |
drivenByObject | この RectTransform の値で動作するオブジェクト。動作しない場合、値は null を返します。 |
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 | Returns a normalized vector representing the blue axis of the transform in world space. |
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 | The scale of the transform relative to the GameObjects parent. |
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 | Checks the GameObject's tag against the defined tag. |
GetComponent | Gets a reference to a component of type T on the same GameObject as the component specified. |
GetComponentInChildren | Gets a reference to a component of type T on the same GameObject as the component specified, or any child of the GameObject. |
GetComponentInParent | Gets a reference to a component of type T on the same GameObject as the component specified, or any parent of the GameObject. |
GetComponents | Gets references to all components of type T on the same GameObject as the component specified. |
GetComponentsInChildren | Gets references to all components of type T on the same GameObject as the component specified, and any child of the GameObject. |
GetComponentsInParent | Gets references to all components of type T on the same GameObject as the component specified, and any parent of the GameObject. |
SendMessage | ゲームオブジェクトにアタッチされているすべての MonoBehaviour にある methodName と名付けたメソッドを呼び出します |
SendMessageUpwards | ゲームオブジェクトと親(の親、さらに親 ... )にアタッチされているすべての MonoBehaviour にある methodName と名付けたメソッドを呼び出します |
TryGetComponent | Gets the component of the specified type, if it exists. |
GetInstanceID | Gets the instance ID of the object. |
ToString | Returns the name of the object. |
DetachChildren | すべての子オブジェクトを親オブジェクトから切り離します |
Find | Finds a child by name n and returns it. |
GetChild | インデックスから子の transform を取得します |
GetLocalPositionAndRotation | Gets the position and rotation of the Transform component in local space (that is, relative to its parent transform). |
GetPositionAndRotation | Gets the position and rotation of the Transform component in world space. |
GetSiblingIndex | 現在の Transform のインデックスを取得します |
InverseTransformDirection | Transforms a direction from world space to local space. The opposite of Transform.TransformDirection. |
InverseTransformDirections | Transforms multiple directions from world space to local space overwriting each original position with the transformed version. The opposite of Transform.TransformDirections. |
InverseTransformPoint | ワールド空間からローカル空間へ position を変換します。 |
InverseTransformPoints | Transforms multiple positions from world space to local space overwriting each original position with the transformed version. |
InverseTransformVector | Transforms a vector from world space to local space. The opposite of Transform.TransformVector. |
InverseTransformVectors | Transforms multiple vectors from world space to local space overwriting each original position with the transformed version. The opposite of Transform.TransformVectors. |
IsChildOf | 親の子を変換するかどうか |
LookAt | 対象の Transform を設定し、その方向へと向かせます |
Rotate | Use Transform.Rotate to rotate GameObjects in a variety of ways. The rotation is often provided as an Euler angle and not a Quaternion. |
RotateAround | ワールド座標の point を中心とした軸( axis )で angle 度回転させま |
SetAsFirstSibling | ローカルの Transform リストで、一番最初の順番になるよう移動します。 |
SetAsLastSibling | ローカルの Transform リストで、一番最後の順番になるよう移動します。 |
SetLocalPositionAndRotation | Sets the position and rotation of the Transform component in local space (i.e. relative to its parent transform). |
SetParent | Transform の親を設定します |
SetPositionAndRotation | Sets the world space position and rotation of the Transform component. |
SetSiblingIndex | 指定のインデックスに Transform を移動させます。 |
TransformDirection | ローカル空間からワールド空間へ direction を変換します |
TransformDirections | Transforms multiple directions from local space to world space overwriting each original direction with the transformed version. |
TransformPoint | ローカル空間からワールド空間へ position を変換します。 |
TransformPoints | Transforms multiple points from local space to world space overwriting each original point with the transformed version. |
TransformVector | ローカル空間からワールド空間へ vector を変換します。 |
TransformVectors | Transforms multiple vectors from local space to world space overwriting each original vector with the transformed version. |
Translate | translation の方向と距離に移動します |
Destroy | Removes a GameObject, component or asset. |
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. |
FindAnyObjectByType | Retrieves any active loaded object of Type type. |
FindFirstObjectByType | Retrieves the first active loaded object of Type type. |
FindObjectOfType | タイプ type から最初に見つけたアクティブのオブジェクトを返します |
FindObjectsByType | Retrieves a list of all loaded objects of Type type. |
FindObjectsOfType | Gets a list of all loaded objects of Type type. |
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.