# Scale

> Multiplies two vectors component-wise.

## Definition

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

## Scale(Vector3, Vector3)

Multiplies two vectors component-wise.

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

### Parameters

**** (\[Vector3]\(/engine/6000.7/script-reference/unityengine/vector3)): The first vector to multiply.**** (\[Vector3]\(/engine/6000.7/script-reference/unityengine/vector3)): The second vector to multiply.

### Returns

| Type                                                              | Description                                                 |
| ----------------------------------------------------------------- | ----------------------------------------------------------- |
| [Vector3](/engine/6000.7/script-reference/unityengine/vector3.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
// Calculate the two vectors generating a result.
// This will compute Vector3(2, 6, 12)

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour
{
    void Example()
    {
        print(Vector3.Scale(new Vector3(1, 2, 3), new Vector3(2, 3, 4)));
    }
}
```

## Scale(Vector3, Vector3)

Multiplies two vectors component-wise.

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

### Parameters

**** (\[Vector3]\(/engine/6000.7/script-reference/unityengine/vector3)): The first vector to multiply.**** (\[Vector3]\(/engine/6000.7/script-reference/unityengine/vector3)): The second vector to multiply.

### Returns

| Type                                                              | Description                                                 |
| ----------------------------------------------------------------- | ----------------------------------------------------------- |
| [Vector3](/engine/6000.7/script-reference/unityengine/vector3.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
// Calculate the two vectors generating a result.
// This will compute Vector3(2, 6, 12)

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour
{
    void Example()
    {
        print(Vector3.Scale(new Vector3(1, 2, 3), new Vector3(2, 3, 4)));
    }
}
```

## Scale(Vector3)

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

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

### Parameters

**** (\[Vector3]\(/engine/6000.7/script-reference/unityengine/vector3)): The vector to multiply by.

## Scale(Vector3)

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

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

### Parameters

**** (\[Vector3]\(/engine/6000.7/script-reference/unityengine/vector3)): The vector to multiply by.
