# GetCustomComponents()

> Gets the list of custom components that are automatically selected for the entire project.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Multiplayer.Editor](/engine/6000.6/script-reference/unity/multiplayer/editor.md)
* **Assembly:** UnityEditor

```csharp
public static Dictionary<Type, MultiplayerRoleFlags> GetCustomComponents()
```

### Returns

| Type                                                                                                                      | Description                                                                                         |
| ------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| [Dictionary\<Type, MultiplayerRoleFlags>](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2) | Returns a Dictionary where the key is the component Type and the value is the MultiplayerRoleFlags. |
