# GetMultiplayerRoleForBuildTarget(NamedBuildTarget)

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

## Definition

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

> **Warning:**
>
> **Deprecated.** Use GetMultiplayerRoleForBuildProfile or GetMultiplayerRoleForClassicTarget instead.

```csharp
public static MultiplayerRoleFlags GetMultiplayerRoleForBuildTarget(NamedBuildTarget namedBuildTarget)
```

### Parameters

**** (\[NamedBuildTarget]\(/engine/6000.6/script-reference/unityeditor/build/namedbuildtarget)): The build target to get the multiplayer role mask for.

### Returns

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

### Remarks

For compatibility with build profiles use GetMultiplayerRoleForBuildProfile instead.
