# SetMultiplayerRoleForClassicTarget

> Sets 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

## SetMultiplayerRoleForClassicTarget(BuildTarget, MultiplayerRoleFlags)

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

```csharp
public static void SetMultiplayerRoleForClassicTarget(BuildTarget buildTarget, MultiplayerRoleFlags mask)
```

### Parameters

**** (\[BuildTarget]\(/engine/6000.7/script-reference/unityeditor/buildtarget)): The build target 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 target.

## SetMultiplayerRoleForClassicTarget(BuildTarget, StandaloneBuildSubtarget, MultiplayerRoleFlags)

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

```csharp
public static void SetMultiplayerRoleForClassicTarget(BuildTarget buildTarget, StandaloneBuildSubtarget subtarget, MultiplayerRoleFlags mask)
```

### Parameters

**** (\[BuildTarget]\(/engine/6000.7/script-reference/unityeditor/buildtarget)): The build target to set the multiplayer role mask for.**** (\[StandaloneBuildSubtarget]\(/engine/6000.7/script-reference/unityeditor/standalonebuildsubtarget)): The subtarget 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 target and subtarget.
