# GetConstrainProportions

> Returns Constrain Proportions toggle value as it is shown in the Transform Inspector window.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

## GetConstrainProportions(Transform)

Returns Constrain Proportions toggle value as it is shown in the Transform Inspector window.

```csharp
public static bool GetConstrainProportions(Transform transform)
```

### Parameters

**** (\[Transform]\(/engine/6000.5/script-reference/unityengine/transform)): Transform to check Constrain Proportions value for.

### Returns

| Type                                                          | Description                                                               |
| ------------------------------------------------------------- | ------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | 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.

```csharp
public static bool GetConstrainProportions(Transform[] transforms)
```

### Parameters

**** (\[Transform\[]]\(/engine/6000.5/script-reference/unityengine/transform)): Transforms to check Constrain Proportions value for.

### Returns

| Type                                                          | Description                                                               |
| ------------------------------------------------------------- | ------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if all passed transforms have Constrain Proportions enabled. |
