矩形の位置、サイズ、アンカー、ピボットの情報
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 | Returns the component of type if the GameObject has one attached. |
| GetComponentInChildren | Returns the Component of type in the GameObject or any of its children using depth first search. |
| GetComponentInParent | Returns the Component of type in the GameObject or any of its parents. |
| GetComponents | GameObject から type のタイプのコンポーネントを「すべて」取得します。 |
| GetComponentsInChildren | Returns all components of Type type in the GameObject or any of its children using depth first search. Works recursively. |
| GetComponentsInParent | GameObject や深さ優先探索を活用して、親子関係にある親オブジェクトから type のタイプのコンポーネントを「すべて」取得します。 |
| 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 を取得します |
| 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 an 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 | 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. |
| FindObjectOfType | タイプ type から最初に見つけたアクティブのオブジェクトを返します |
| FindObjectsOfType | Gets a list of all loaded objects of Type type. |
| Instantiate | original のオブジェクトをクローンします |
| bool | オブジェクトが存在するかどうか |
| operator != | 二つのオブジェクトが異なるオブジェクトを参照しているか比較します |
| operator == | 2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。 |