# Sandbox.BeamEffect.SetTarget

```csharp
void SetTarget(SceneAnchor target)
```

[Sandbox.ITargetedEffect](/api/Sandbox.ITargetedEffect): aim the beam - at the anchor's object when it has one, so the
            beam follows it, otherwise at the fixed position.

### Parameters

- `target` (`SceneAnchor`)

Declared in [Sandbox.BeamEffect](/api/Sandbox.BeamEffect).
Assembly: `Sandbox.Engine`.
