# Sandbox.GameObject.GetComponent

```csharp
T GetComponent(bool includeDisabled = False)
```

Get a component on this GameObject

### Parameters

- `includeDisabled` (`bool`), default `False`

### Returns

`T`

Declared in [Sandbox.GameObject](/api/Sandbox.GameObject).
Assembly: `Sandbox.Engine`.
