Legacy Documentation: Version 2018.1 (Go to current version)
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.

Properties

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.
对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答