# Ray.ToLocal

```csharp
Ray ToLocal(in Transform tx)
```

Convert a ray to be local to this transform

### Parameters

- `in tx` (`Transform`)

### Returns

`Ray`

Declared in [Ray](/api/Ray).
Assembly: `Sandbox.System`.
