# Scale

> Multiplies two vectors component-wise.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

## Scale(Vector2, Vector2)

Multiplies two vectors component-wise.

```csharp
public static Vector2 Scale(Vector2 a, Vector2 b)
```

### Parameters

**** (\[Vector2]\(/engine/6000.7/script-reference/unityengine/vector2)): The vector to multiply by `b`.**** (\[Vector2]\(/engine/6000.7/script-reference/unityengine/vector2)): The vector to multiply by `a`.

### Returns

| Type                                                              | Description                                                 |
| ----------------------------------------------------------------- | ----------------------------------------------------------- |
| [Vector2](/engine/6000.7/script-reference/unityengine/vector2.md) | A component of `a` multiplied by the same component of `b`. |

### Remarks

Every component in the result is a component of `a` multiplied by the same component of `b`.

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        // prints (2.0,6.0)
        print(Vector2.Scale(new Vector2(1, 2), new Vector2(2, 3)));
    }
}
```

## Scale(Vector2, Vector2)

Multiplies two vectors component-wise.

```csharp
public static Vector2 Scale(in Vector2 a, in Vector2 b)
```

### Parameters

**** (\[Vector2]\(/engine/6000.7/script-reference/unityengine/vector2)): The vector to multiply by `b`.**** (\[Vector2]\(/engine/6000.7/script-reference/unityengine/vector2)): The vector to multiply by `a`.

### Returns

| Type                                                              | Description                                                 |
| ----------------------------------------------------------------- | ----------------------------------------------------------- |
| [Vector2](/engine/6000.7/script-reference/unityengine/vector2.md) | A component of `a` multiplied by the same component of `b`. |

### Remarks

Every component in the result is a component of `a` multiplied by the same component of `b`.

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        // prints (2.0,6.0)
        print(Vector2.Scale(new Vector2(1, 2), new Vector2(2, 3)));
    }
}
```

## Scale(Vector2)

Multiplies every component of this vector by the same component of `scale`.

```csharp
public void Scale(Vector2 scale)
```

### Parameters

**** (\[Vector2]\(/engine/6000.7/script-reference/unityengine/vector2)): The vector to multiply this vector by, component by component.

## Scale(Vector2)

Multiplies every component of this vector by the same component of `scale`.

```csharp
public void Scale(in Vector2 scale)
```

### Parameters

**** (\[Vector2]\(/engine/6000.7/script-reference/unityengine/vector2)): The vector to multiply this vector by, component by component.
