# Editor.Trace.Ray

```csharp
static Trace Ray(in Vector3 from, in Vector3 to)
```

Create a trace ray.

### Parameters

- `in from` (`Vector3`): Start position in world space.
- `in to` (`Vector3`): End position in world space.

### Returns

`Trace`

Declared in [Editor.Trace](/api/Editor.Trace).
Assembly: `Sandbox.Tools`.
