Class MultiplayerRolesManager
Provides an api for managing multiplayer roles in runtime.
Inherited Members
Namespace: Unity.Multiplayer
Assembly: Unity.DedicatedServer.MultiplayerRoles.dll
Syntax
public static class MultiplayerRolesManager
Properties
ActiveMultiplayerRoleMask
Gets the active multiplayer role mask.
Declaration
public static MultiplayerRoleFlags ActiveMultiplayerRoleMask { get; }
Property Value
| Type | Description |
|---|---|
| MultiplayerRoleFlags |
Methods
GetMultiplayerRoleMaskForComponent(Component)
Gets the multiplayer role mask for a Component.
Declaration
public static MultiplayerRoleFlags GetMultiplayerRoleMaskForComponent(Component component)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | component | The Component. |
Returns
| Type | Description |
|---|---|
| MultiplayerRoleFlags | Returns the multiplayer role mask for the provided Component. |
GetMultiplayerRoleMaskForGameObject(GameObject)
Gets the multiplayer role mask for a GameObject.
Declaration
public static MultiplayerRoleFlags GetMultiplayerRoleMaskForGameObject(GameObject gameObject)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | gameObject | The GameObject. |
Returns
| Type | Description |
|---|---|
| MultiplayerRoleFlags | Returns the multiplayer role mask for the provided GameObject. |