ドキュメント

Unity Engine

Unity Engine

GetConstrainProportions

Returns Constrain Proportions toggle value as it is shown in the Transform Inspector window.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

GetConstrainProportions(Transform)

Returns Constrain Proportions toggle value as it is shown in the Transform Inspector window.
public static bool GetConstrainProportions(Transform transform)

Parameters

transform

Transform to check Constrain Proportions value for.

Returns

Type

Description

boolReturns true if all passed transforms have Constrain Proportions enabled.

GetConstrainProportions(Transform[])

Returns Constrain Proportions toggle value as it is shown in the Transform Inspector window.
public static bool GetConstrainProportions(Transform[] transforms)

Parameters

transforms

Transforms to check Constrain Proportions value for.

Returns

Type

Description

boolReturns true if all passed transforms have Constrain Proportions enabled.