# scalingAxis

> The axes affected by the ScaleConstraint.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.Animations](/engine/6000.3/script-reference/unityengine/animations.md)
* **Assembly:** UnityEngine.AnimationModule

```csharp
public Axis scalingAxis { get; set; }
```

### Remarks

Use this property to restrict the effect of the constraint on a particular axis.

### Examples

```csharp
using UnityEngine.Animations;

public class ConstraintAxis
{
    public void ConstrainOnlyOnXY(ScaleConstraint component)
    {
        component.scalingAxis = Axis.X | Axis.Y;
    }
}
```
