# Sandbox.Scene.GetAllComponents

## Overload 1

```csharp
IEnumerable<T> GetAllComponents()
```

Get all components of type. This can include interfaces.
This function can only find enabled/active components.

### Returns

`IEnumerable<T>`

## Overload 2

```csharp
IEnumerable<Component> GetAllComponents(System.Type type)
```

Get all components of type. This can include interfaces.
This function can only find enabled/active components.

### Parameters

- `type` (`System.Type`)

### Returns

`IEnumerable<Component>`

Declared in [Sandbox.Scene](/api/Sandbox.Scene).
Assembly: `Sandbox.Engine`.
