Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetConstrainProportions

Returns Constrain Proportions toggle value as it is shown in the Transform Inspector window.
Read time 1 minuteLast updated 11 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

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.