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 to check Constrain Proportions value for.
Returns
Type | Description |
|---|---|
| bool | Returns 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 to check Constrain Proportions value for.
Returns
Type | Description |
|---|---|
| bool | Returns true if all passed transforms have Constrain Proportions enabled. |