Legacy Documentation: Version 5.5
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

DrivenTransformProperties

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

An enumeration of transform properties that can be driven on a RectTransform by an object.

Variables

NoneDeselects all driven properties.
AllSelects all driven properties.
AnchoredPositionXSelects driven property RectTransform.anchoredPosition.x.
AnchoredPositionYSelects driven property RectTransform.anchoredPosition.y.
AnchoredPositionZSelects driven property RectTransform.anchoredPosition3D.z.
RotationSelects driven property Transform.localRotation.
ScaleXSelects driven property Transform.localScale.x.
ScaleYSelects driven property Transform.localScale.y.
ScaleZSelects driven property Transform.localScale.z.
AnchorMinXSelects driven property RectTransform.anchorMin.x.
AnchorMinYSelects driven property RectTransform.anchorMin.y.
AnchorMaxXSelects driven property RectTransform.anchorMax.x.
AnchorMaxYSelects driven property RectTransform.anchorMax.y.
SizeDeltaXSelects driven property RectTransform.sizeDelta.x.
SizeDeltaYSelects driven property RectTransform.sizeDelta.y.
PivotXSelects driven property RectTransform.pivot.x.
PivotYSelects driven property RectTransform.pivot.y.
AnchoredPositionSelects driven property RectTransform.anchoredPosition.
AnchoredPosition3DSelects driven property RectTransform.anchoredPosition3D.
ScaleSelects driven property combining ScaleX, ScaleY && ScaleZ.
AnchorMinSelects driven property combining AnchorMinX and AnchorMinY.
AnchorMaxSelects driven property combining AnchorMaxX and AnchorMaxY.
AnchorsSelects driven property combining AnchorMinX, AnchorMinY, AnchorMaxX and AnchorMaxY.
SizeDeltaSelects driven property combining SizeDeltaX and SizeDeltaY.
PivotSelects driven property combining PivotX and PivotY.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961