# Scale

> Multiplies two vectors component-wise.

## Definition

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

## Scale(Vector4, Vector4)

Multiplies two vectors component-wise.

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

### Parameters

**** (\[Vector4]\(/engine/6000.0/script-reference/unityengine/vector4)): The first vector to multiply.**** (\[Vector4]\(/engine/6000.0/script-reference/unityengine/vector4)): The second vector to multiply.

### Returns

| Type                                                              | Description                                                                                     |
| ----------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| [Vector4](/engine/6000.0/script-reference/unityengine/vector4.md) | A vector in which each component is the product of the corresponding components of `a` and `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,12.0,20.0)
        print(Vector4.Scale(new Vector4(1, 2, 3, 4), new Vector4(2, 3, 4, 5)));
    }
}
```

## Scale(Vector4)

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

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

### Parameters

**** (\[Vector4]\(/engine/6000.0/script-reference/unityengine/vector4)): The vector to multiply this vector by, component by component.
