# Sandbox.BeamEffect.TargetGameObject

```csharp
GameObject TargetGameObject { get; set; }
```

GameObject to target with the beam. If assigned, overrides TargetPosition and uses the object's world position as the endpoint.

Declared in [Sandbox.BeamEffect](/api/Sandbox.BeamEffect).
Assembly: `Sandbox.Engine`.
