# SetMultiplayerRoleMaskForComponent(Component, MultiplayerRoleFlags)

> Sets the multiplayer role mask for a Component.

## Definition

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

```csharp
public static void SetMultiplayerRoleMaskForComponent(Component component, MultiplayerRoleFlags mask)
```

### Parameters

**** (\[Component]\(/engine/6000.6/script-reference/unityengine/component)): The Component to set the multiplayer role mask to.**** (\[MultiplayerRoleFlags]\(/engine/6000.6/script-reference/unity/multiplayer/multiplayerroleflags)): The multiplayer role mask to assing to the Component.
