# magnitude

> Returns the length of this vector (Read Only).

## Definition

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

```csharp
public readonly float magnitude { get; }
```

### Remarks

The length of the vector is square root of `(x*x+y*y+z*z)`.

If you only need to compare magnitudes of some vectors, you can compare squared magnitudes of them using [Vector3.sqrMagnitude](/engine/6000.5/script-reference/unityengine/vector3/sqrmagnitude.md) (computing squared magnitudes is faster).

Additional Resources: [Vector3.sqrMagnitude](/engine/6000.5/script-reference/unityengine/vector3/sqrmagnitude.md).
