# GetMultiplayerRoleForClassicTarget

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

## Definition

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

## GetMultiplayerRoleForClassicTarget(BuildTarget)

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

```csharp
public static MultiplayerRoleFlags GetMultiplayerRoleForClassicTarget(BuildTarget buildTarget)
```

### Parameters

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

### Returns

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

## GetMultiplayerRoleForClassicTarget(BuildTarget, StandaloneBuildSubtarget)

Gets the multiplayer role that is going to be used for the provided build target and subtarget.

```csharp
public static MultiplayerRoleFlags GetMultiplayerRoleForClassicTarget(BuildTarget buildTarget, StandaloneBuildSubtarget subtarget)
```

### Parameters

**** (\[BuildTarget]\(/engine/6000.7/script-reference/unityeditor/buildtarget)): The build target to get the multiplayer role mask for.**** (\[StandaloneBuildSubtarget]\(/engine/6000.7/script-reference/unityeditor/standalonebuildsubtarget)): The subtarget to get the multiplayer role mask for.

### Returns

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