# direction

> The direction of the ray in world space.

## Definition

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

```csharp
public Vector2 direction { get; set; }
```

### Remarks

Additional Resources: [Ray2D.origin](/engine/6000.0/script-reference/unityengine/ray2d/origin.md).
