# GetMultiplayerRoleMaskForGameObject(GameObject)

> Gets the multiplayer role mask for a GameObject.

## Definition

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

```csharp
public static MultiplayerRoleFlags GetMultiplayerRoleMaskForGameObject(GameObject gameObject)
```

### Parameters

**** (\[GameObject]\(/engine/6000.7/script-reference/unityengine/gameobject)): The GameObject.

### Returns

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