Class Transform
Assembly: UnityEngine.dll
public class Transform : Component, IEnumerable
Constructors
|
Improve this Doc
View Source
Declaration
Properties
Declaration
public int childCount { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public Vector3 eulerAngles { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public Vector3 forward { get; set; }
Property Value
Declaration
public bool hasChanged { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public int hierarchyCapacity { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public int hierarchyCount { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public Vector3 localEulerAngles { get; set; }
Property Value
Declaration
public Vector3 localPosition { get; set; }
Property Value
Declaration
public Quaternion localRotation { get; set; }
Property Value
Declaration
public Vector3 localScale { get; set; }
Property Value
Declaration
public Matrix4x4 localToWorldMatrix { get; }
Property Value
Declaration
public Vector3 lossyScale { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public Transform parent { get; set; }
Property Value
Declaration
public Vector3 position { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public Vector3 right { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public Transform root { get; }
Property Value
Declaration
public Quaternion rotation { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public Vector3 up { get; set; }
Property Value
Declaration
public Matrix4x4 worldToLocalMatrix { get; }
Property Value
Methods
Declaration
public void DetachChildren()
|
Improve this Doc
View Source
Declaration
public Transform Find(string n)
Parameters
Type |
Name |
Description |
String |
n |
|
Returns
|
Improve this Doc
View Source
Declaration
[Obsolete("FindChild has been deprecated. Use Find instead (UnityUpgradable) -> Find([mscorlib] System.String)", false)]
public Transform FindChild(string n)
Parameters
Type |
Name |
Description |
String |
n |
|
Returns
Declaration
public Transform GetChild(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
Declaration
[Obsolete("warning use Transform.childCount instead (UnityUpgradable) -> Transform.childCount", false)]
public int GetChildCount()
Returns
|
Improve this Doc
View Source
Declaration
public IEnumerator GetEnumerator()
Returns
Declaration
public int GetSiblingIndex()
Returns
|
Improve this Doc
View Source
Declaration
public Vector3 InverseTransformDirection(float x, float y, float z)
Parameters
Returns
Declaration
public Vector3 InverseTransformDirection(Vector3 direction)
Parameters
Type |
Name |
Description |
Vector3 |
direction |
|
Returns
|
Improve this Doc
View Source
Declaration
public Vector3 InverseTransformPoint(float x, float y, float z)
Parameters
Returns
Declaration
public Vector3 InverseTransformPoint(Vector3 position)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
Returns
|
Improve this Doc
View Source
Declaration
public Vector3 InverseTransformVector(float x, float y, float z)
Parameters
Returns
Declaration
public Vector3 InverseTransformVector(Vector3 vector)
Parameters
Type |
Name |
Description |
Vector3 |
vector |
|
Returns
Declaration
public bool IsChildOf(Transform parent)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public void LookAt(Transform target)
Parameters
|
Improve this Doc
View Source
Declaration
public void LookAt(Transform target, [DefaultValue("Vector3.up")] Vector3 worldUp)
Parameters
|
Improve this Doc
View Source
Declaration
public void LookAt(Vector3 worldPosition)
Parameters
Type |
Name |
Description |
Vector3 |
worldPosition |
|
|
Improve this Doc
View Source
Declaration
public void LookAt(Vector3 worldPosition, [DefaultValue("Vector3.up")] Vector3 worldUp)
Parameters
|
Improve this Doc
View Source
Declaration
public void Rotate(float xAngle, float yAngle, float zAngle)
Parameters
|
Improve this Doc
View Source
Declaration
public void Rotate(float xAngle, float yAngle, float zAngle, [DefaultValue("Space.Self")] Space relativeTo)
Parameters
|
Improve this Doc
View Source
Declaration
public void Rotate(Vector3 eulers)
Parameters
Type |
Name |
Description |
Vector3 |
eulers |
|
|
Improve this Doc
View Source
Declaration
public void Rotate(Vector3 axis, float angle)
Parameters
|
Improve this Doc
View Source
Declaration
public void Rotate(Vector3 axis, float angle, [DefaultValue("Space.Self")] Space relativeTo)
Parameters
|
Improve this Doc
View Source
Declaration
public void Rotate(Vector3 eulers, [DefaultValue("Space.Self")] Space relativeTo)
Parameters
Declaration
[Obsolete("warning use Transform.Rotate instead.")]
public void RotateAround(Vector3 axis, float angle)
Parameters
|
Improve this Doc
View Source
Declaration
public void RotateAround(Vector3 point, Vector3 axis, float angle)
Parameters
Declaration
[Obsolete("warning use Transform.Rotate instead.")]
public void RotateAroundLocal(Vector3 axis, float angle)
Parameters
Declaration
public void SetAsFirstSibling()
Declaration
public void SetAsLastSibling()
|
Improve this Doc
View Source
Declaration
public void SetParent(Transform p)
Parameters
Declaration
public void SetParent(Transform parent, bool worldPositionStays)
Parameters
Declaration
public void SetPositionAndRotation(Vector3 position, Quaternion rotation)
Parameters
Declaration
public void SetSiblingIndex(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
|
Improve this Doc
View Source
Declaration
public Vector3 TransformDirection(float x, float y, float z)
Parameters
Returns
Declaration
public Vector3 TransformDirection(Vector3 direction)
Parameters
Type |
Name |
Description |
Vector3 |
direction |
|
Returns
|
Improve this Doc
View Source
Declaration
public Vector3 TransformPoint(float x, float y, float z)
Parameters
Returns
Declaration
public Vector3 TransformPoint(Vector3 position)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
Returns
|
Improve this Doc
View Source
Declaration
public Vector3 TransformVector(float x, float y, float z)
Parameters
Returns
Declaration
public Vector3 TransformVector(Vector3 vector)
Parameters
Type |
Name |
Description |
Vector3 |
vector |
|
Returns
|
Improve this Doc
View Source
Declaration
public void Translate(float x, float y, float z)
Parameters
|
Improve this Doc
View Source
Declaration
public void Translate(float x, float y, float z, [DefaultValue("Space.Self")] Space relativeTo)
Parameters
|
Improve this Doc
View Source
Declaration
public void Translate(float x, float y, float z, Transform relativeTo)
Parameters
|
Improve this Doc
View Source
Declaration
public void Translate(Vector3 translation)
Parameters
Type |
Name |
Description |
Vector3 |
translation |
|
|
Improve this Doc
View Source
Declaration
public void Translate(Vector3 translation, [DefaultValue("Space.Self")] Space relativeTo)
Parameters
|
Improve this Doc
View Source
Declaration
public void Translate(Vector3 translation, Transform relativeTo)
Parameters
Implements
Extension Methods