# GetMultiplayerRoleForBuildProfile(BuildProfile)

> Gets the multiplayer role that is going to be used for the provided build profile.

## Definition

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

```csharp
public static MultiplayerRoleFlags GetMultiplayerRoleForBuildProfile(BuildProfile profile)
```

### Parameters

**** (\[BuildProfile]\(/engine/6000.6/script-reference/unityeditor/build/profile/buildprofile)): The build profile to get the multiplayer role maks for.

### Returns

| Type                                                                                              | Description                                                       |
| ------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| [MultiplayerRoleFlags](/engine/6000.6/script-reference/unity/multiplayer/multiplayerroleflags.md) | Returns the multiplayer role mask for the provided build profile. |
