# SetMultiplayerRoleMaskForGameObject(GameObject, MultiplayerRoleFlags)

> Sets the multiplayer role mask for a GameObject.

## Definition

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

```csharp
public static void SetMultiplayerRoleMaskForGameObject(GameObject gameObject, MultiplayerRoleFlags mask)
```

### Parameters

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