# Sandbox.BoxCollider.SetToGameObjectBounds

```csharp
void SetToGameObjectBounds()
```

Sets the box to the bounds of this GameObject

Declared in [Sandbox.BoxCollider](/api/Sandbox.BoxCollider).
Assembly: `Sandbox.Engine`.
