UnityEngineRectTransform
API reference for UnityEngineRectTransform.
Properties
| Property | Type | Access |
|---|---|---|
| anchoredPosition | Vector2 | get, set |
| anchoredPosition3D | Vector3 | get, set |
| anchorMax | Vector2 | get, set |
| anchorMin | Vector2 | get, set |
| childCount | int | get |
| drivenByObject | UnityEngineObject | get |
| eulerAngles | Vector3 | get, set |
| forward | Vector3 | get, set |
| gameObject | GameObject | get |
| hasChanged | bool | get, set |
| hierarchyCapacity | int | get, set |
| hierarchyCount | int | get |
| localEulerAngles | Vector3 | get, set |
| localPosition | Vector3 | get, set |
| localRotation | Quaternion | get, set |
| localScale | Vector3 | get, set |
| localToWorldMatrix | UnityEngineMatrix4x4 | get |
| lossyScale | Vector3 | get |
| name | string | get, set |
| offsetMax | Vector2 | get, set |
| offsetMin | Vector2 | get, set |
| parent | Transform | get, set |
| pivot | Vector2 | get, set |
| position | Vector3 | get, set |
| rect | UnityEngineRect | get |
| right | Vector3 | get, set |
| root | Transform | get |
| rotation | Quaternion | get, set |
| sizeDelta | Vector2 | get, set |
| transform | Transform | get |
| up | Vector3 | get, set |
| worldToLocalMatrix | UnityEngineMatrix4x4 | get |
Methods
DetachChildren
DetachChildren() -> voidEquals
Equals(other: object) -> boolFind
Find(n: string) -> TransformForceUpdateRectTransforms
ForceUpdateRectTransforms() -> voidGetChild
GetChild(index: int) -> TransformGetComponent
GetComponent(type: string) -> UnityEngineComponentGetComponent(type: SystemType) -> UnityEngineComponentGetComponent(type: SystemType) -> UnityEngineObjectGetComponentInChildren
GetComponentInChildren(includeInactive: bool, type: SystemType) -> UnityEngineObjectGetComponentInChildren(t: SystemType, includeInactive: bool) -> UnityEngineComponentGetComponentInChildren(t: SystemType) -> UnityEngineComponentGetComponentInChildren(type: SystemType) -> UnityEngineObjectGetComponentInParent
GetComponentInParent(includeInactive: bool, type: SystemType) -> UnityEngineObjectGetComponentInParent(t: SystemType, includeInactive: bool) -> UnityEngineComponentGetComponentInParent(t: SystemType) -> UnityEngineComponentGetComponentInParent(type: SystemType) -> UnityEngineObjectGetComponents
GetComponents(results: SystemCollectionsGenericList`1[[UnityEngineObject, UnityEngineCoreModule, Version=0000, Culture=neutral, PublicKeyToken=null]], type: SystemType) -> voidGetComponents(type: SystemType, results: SystemCollectionsGenericList`1[[UnityEngineComponent, UnityEngineCoreModule, Version=0000, Culture=neutral, PublicKeyToken=null]]) -> voidGetComponents(type: SystemType) -> UnityEngineComponent[]GetComponents(type: SystemType) -> UnityEngineObject[]GetComponentsInChildren
GetComponentsInChildren(results: SystemCollectionsGenericList`1[[UnityEngineObject, UnityEngineCoreModule, Version=0000, Culture=neutral, PublicKeyToken=null]], type: SystemType) -> voidGetComponentsInChildren(includeInactive: bool, result: SystemCollectionsGenericList`1[[UnityEngineObject, UnityEngineCoreModule, Version=0000, Culture=neutral, PublicKeyToken=null]]) -> voidGetComponentsInChildren(includeInactive: bool, type: SystemType) -> UnityEngineObject[]GetComponentsInChildren(t: SystemType, includeInactive: bool) -> UnityEngineComponent[]GetComponentsInChildren(t: SystemType) -> UnityEngineComponent[]GetComponentsInChildren(type: SystemType) -> UnityEngineObject[]GetComponentsInParent
GetComponentsInParent(includeInactive: bool, results: SystemCollectionsGenericList`1[[UnityEngineObject, UnityEngineCoreModule, Version=0000, Culture=neutral, PublicKeyToken=null]]) -> voidGetComponentsInParent(includeInactive: bool, type: SystemType) -> UnityEngineObject[]GetComponentsInParent(t: SystemType, includeInactive: bool) -> UnityEngineComponent[]GetComponentsInParent(t: SystemType) -> UnityEngineComponent[]GetComponentsInParent(type: SystemType) -> UnityEngineObject[]GetEnumerator
GetEnumerator() -> SystemCollectionsIEnumeratorGetHashCode
GetHashCode() -> intGetInstanceID
GetInstanceID() -> intGetLocalCorners
GetLocalCorners(fourCornersArray: Vector3[]) -> voidGetLocalPositionAndRotation
GetLocalPositionAndRotation(localPosition: Vector3, localRotation: Quaternion) -> QuaternionGetPositionAndRotation
GetPositionAndRotation(position: Vector3, rotation: Quaternion) -> QuaternionGetSiblingIndex
GetSiblingIndex() -> intGetType
GetType() -> SystemTypeGetWorldCorners
GetWorldCorners(fourCornersArray: Vector3[]) -> voidInverseTransformDirection
InverseTransformDirection(x: float, y: float, z: float) -> Vector3InverseTransformDirection(direction: Vector3) -> Vector3InverseTransformPoint
InverseTransformPoint(x: float, y: float, z: float) -> Vector3InverseTransformPoint(position: Vector3) -> Vector3InverseTransformVector
InverseTransformVector(x: float, y: float, z: float) -> Vector3InverseTransformVector(vector: Vector3) -> Vector3IsChildOf
IsChildOf(parent: Transform) -> boolLookAt
LookAt(target: Transform, worldUp: Vector3) -> voidLookAt(target: Transform) -> voidLookAt(worldPosition: Vector3, worldUp: Vector3) -> voidLookAt(worldPosition: Vector3) -> voidRotate
Rotate(xAngle: float, yAngle: float, zAngle: float, relativeTo: UnityEngineSpace) -> voidRotate(xAngle: float, yAngle: float, zAngle: float) -> voidRotate(axis: Vector3, angle: float, relativeTo: UnityEngineSpace) -> voidRotate(axis: Vector3, angle: float) -> voidRotate(eulers: Vector3, relativeTo: UnityEngineSpace) -> voidRotate(eulers: Vector3) -> voidRotateAround
RotateAround(point: Vector3, axis: Vector3, angle: float) -> voidSetAsFirstSibling
SetAsFirstSibling() -> voidSetAsLastSibling
SetAsLastSibling() -> voidSetInsetAndSizeFromParentEdge
SetInsetAndSizeFromParentEdge(edge: UnityEngineRectTransformEdge, inset: float, size: float) -> voidSetLocalPositionAndRotation
SetLocalPositionAndRotation(localPosition: Vector3, localRotation: Quaternion) -> voidSetParent
SetParent(parent: Transform, worldPositionStays: bool) -> voidSetParent(p: Transform) -> voidSetPositionAndRotation
SetPositionAndRotation(position: Vector3, rotation: Quaternion) -> voidSetSiblingIndex
SetSiblingIndex(index: int) -> voidSetSizeWithCurrentAnchors
SetSizeWithCurrentAnchors(axis: UnityEngineRectTransformAxis, size: float) -> voidToString
ToString() -> stringTransformDirection
TransformDirection(x: float, y: float, z: float) -> Vector3TransformDirection(direction: Vector3) -> Vector3TransformPoint
TransformPoint(x: float, y: float, z: float) -> Vector3TransformPoint(position: Vector3) -> Vector3TransformVector
TransformVector(x: float, y: float, z: float) -> Vector3TransformVector(vector: Vector3) -> Vector3Translate
Translate(x: float, y: float, z: float, relativeTo: UnityEngineSpace) -> voidTranslate(x: float, y: float, z: float, relativeTo: Transform) -> voidTranslate(x: float, y: float, z: float) -> voidTranslate(translation: Vector3, relativeTo: UnityEngineSpace) -> voidTranslate(translation: Vector3, relativeTo: Transform) -> voidTranslate(translation: Vector3) -> void