# GetMultiplayerRoleMaskForComponent(Component)

> Gets 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 MultiplayerRoleFlags GetMultiplayerRoleMaskForComponent(Component component)
```

### Parameters

**** (\[Component]\(/engine/6000.6/script-reference/unityengine/component)): The Component.

### Returns

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