RectTransform

More information can be found in the Unity API Reference

Constructors

Constructor

Description

RectTransform()

Members

Member

Description

anchoredPosition

anchoredPosition3D

anchorMax

anchorMin

asRectTransform

Returns this transform as a rect transform. If unavailable, returns nil.

asTransform

Returns this RectTransform as a transform

childCount

eulerAngles

forward

gameObject

hasChanged

hierarchyCapacity

hierarchyCount

localEulerAngles

localPosition

localRotation

localScale

localToWorldMatrix

lossyScale

name

offsetMax

offsetMin

parent

pivot

position

rect

right

root

rotation

sizeDelta

tag

transform

up

worldToLocalMatrix

Methods

Method

Description

CompareTag(tag)

DetachChildren()

Find(n)

ForceUpdateRectTransforms()

GetChild(index)

GetHashCode()

GetLocalCorners(fourCornersArray)

GetSiblingIndex()

GetWorldCorners(fourCornersArray)

InverseTransformDirection(direction)

InverseTransformDirection(x, y, z)

InverseTransformPoint(position)

InverseTransformPoint(x, y, z)

InverseTransformVector(vector)

InverseTransformVector(x, y, z)

IsChildOf(parent)

LookAt(target)

LookAt(worldPosition)

LookAt(target, worldUp)

LookAt(worldPosition, worldUp)

Rotate(eulers)

Rotate(eulers, relativeTo)

Rotate(axis, angle)

Rotate(xAngle, yAngle, zAngle)

Rotate(axis, angle, relativeTo)

Rotate(xAngle, yAngle, zAngle, relativeTo)

RotateAround(point, axis, angle)

SetAsFirstSibling()

SetAsLastSibling()

SetParent(p)

SetParent(parent, worldPositionStays)

SetPositionAndRotation(position, rotation)

SetSiblingIndex(index)

ToString()

TransformDirection(direction)

TransformDirection(x, y, z)

TransformPoint(position)

TransformPoint(x, y, z)

TransformVector(vector)

TransformVector(x, y, z)

Translate(translation)

Translate(translation, relativeTo)

Translate(translation, relativeTo)

Translate(x, y, z)

Translate(x, y, z, relativeTo)

Translate(x, y, z, relativeTo)

Details

class RectTransform
RectTransform RectTransform()
Vector2 anchoredPosition
Vector3 anchoredPosition3D
Vector2 anchorMax
Vector2 anchorMin
const RectTransform asRectTransform

Returns this transform as a rect transform. If unavailable, returns nil.

const Transform asTransform

Returns this RectTransform as a transform

const int childCount
Vector3 eulerAngles
Vector3 forward
const GameObject gameObject
bool hasChanged
int hierarchyCapacity
const int hierarchyCount
Vector3 localEulerAngles
Vector3 localPosition
Quaternion localRotation
Vector3 localScale
const Matrix4x4 localToWorldMatrix
const Vector3 lossyScale
string name
Vector2 offsetMax
Vector2 offsetMin
Transform parent
Vector2 pivot
Vector3 position
const Rect rect
Vector3 right
const Transform root
Quaternion rotation
Vector2 sizeDelta
string tag
const Transform transform
Vector3 up
const Matrix4x4 worldToLocalMatrix
bool CompareTag(string tag)
void DetachChildren()
Transform Find(string n)
void ForceUpdateRectTransforms()
Transform GetChild(int index)
int GetHashCode()
void GetLocalCorners(array<Vector3> fourCornersArray)
int GetSiblingIndex()
void GetWorldCorners(array<Vector3> fourCornersArray)
Vector3 InverseTransformDirection(Vector3 direction)
Vector3 InverseTransformDirection(float x, float y, float z)
Vector3 InverseTransformPoint(Vector3 position)
Vector3 InverseTransformPoint(float x, float y, float z)
Vector3 InverseTransformVector(Vector3 vector)
Vector3 InverseTransformVector(float x, float y, float z)
bool IsChildOf(Transform parent)
void LookAt(Transform target)
void LookAt(Vector3 worldPosition)
void LookAt(Transform target, Vector3 worldUp)
void LookAt(Vector3 worldPosition, Vector3 worldUp)
void Rotate(Vector3 eulers)
void Rotate(Vector3 eulers, Space relativeTo)
void Rotate(Vector3 axis, float angle)
void Rotate(float xAngle, float yAngle, float zAngle)
void Rotate(Vector3 axis, float angle, Space relativeTo)
void Rotate(float xAngle, float yAngle, float zAngle, Space relativeTo)
void RotateAround(Vector3 point, Vector3 axis, float angle)
void SetAsFirstSibling()
void SetAsLastSibling()
void SetParent(Transform p)
void SetParent(Transform parent, bool worldPositionStays)
void SetPositionAndRotation(Vector3 position, Quaternion rotation)
void SetSiblingIndex(int index)
string ToString()
Vector3 TransformDirection(Vector3 direction)
Vector3 TransformDirection(float x, float y, float z)
Vector3 TransformPoint(Vector3 position)
Vector3 TransformPoint(float x, float y, float z)
Vector3 TransformVector(Vector3 vector)
Vector3 TransformVector(float x, float y, float z)
void Translate(Vector3 translation)
void Translate(Vector3 translation, Space relativeTo)
void Translate(Vector3 translation, Transform relativeTo)
void Translate(float x, float y, float z)
void Translate(float x, float y, float z, Space relativeTo)
void Translate(float x, float y, float z, Transform relativeTo)