オブジェクトの位置、回転、スケールを扱うクラス
Every object in a Scene has a Transform. It's used to store and manipulate the position, rotation and scale of the object. Every Transform can have a parent, which allows you to apply position, rotation and scale hierarchically. This is the hierarchy seen in the Hierarchy pane. They also support enumerators so you can loop through children using:
using UnityEngine;
public class Example : MonoBehaviour { // Moves all transform children 10 units upwards! void Start() { foreach (Transform child in transform) { child.position += Vector3.up * 10.0f; } } }
関連項目: Transform コンポーネント、Physics クラス .
| 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 | ワールド座標からローカル座標へ変換した行列(読み取り専用) | 
| 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 の方向と距離に移動します | 
| 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 | オブジェクト名 | 
| 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. | 
| 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つのオブジェクト参照が同じオブジェクトを参照しているか比較します。 |