# Sandbox.GameObject.SetParent

```csharp
void SetParent(GameObject value, bool keepWorldPosition = True)
```

### Parameters

- `value` (`GameObject`)
- `keepWorldPosition` (`bool`), default `True`

Declared in [Sandbox.GameObject](/api/Sandbox.GameObject).
Assembly: `Sandbox.Engine`.
