# Sandbox.Gizmo.GizmoHitbox.TrySetHovered

## Overload 1

```csharp
void TrySetHovered(float distance)
```

If this distance is closer than our previous best, this path will become the hovered path

### Parameters

- `distance` (`float`)

## Overload 2

```csharp
void TrySetHovered(Vector3 position)
```

If this distance is closer than our previous best, this path will become the hovered path

### Parameters

- `position` (`Vector3`)

Declared in [Sandbox.Gizmo.GizmoHitbox](/api/Sandbox.Gizmo.GizmoHitbox).
Assembly: `Sandbox.Engine`.
