# SetMultiplayerRoleForBuildProfile(BuildProfile, MultiplayerRoleFlags)

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

## Definition

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

```csharp
public static void SetMultiplayerRoleForBuildProfile(BuildProfile profile, MultiplayerRoleFlags mask)
```

### Parameters

**** (\[BuildProfile]\(/engine/6000.7/script-reference/unityeditor/build/profile/buildprofile)): The build profile to set the multiplayer role mask for.**** (\[MultiplayerRoleFlags]\(/engine/6000.7/script-reference/unity/multiplayer/multiplayerroleflags)): The multiplayer role mask to assing to the build profile.
