Class EditorMultiplayerRolesManager.AutomaticSelection
Provides an api for automatically stripping specific component types for the multiplayer roles.
Inherited Members
Namespace: Unity.Multiplayer.Editor
Assembly: Unity.DedicatedServer.MultiplayerRoles.Editor.dll
Syntax
public static class EditorMultiplayerRolesManager.AutomaticSelection
  Methods
GetCustomComponents()
Gets the list of custom components that are automatically selected for the entire project.
Declaration
public static Dictionary<Type, MultiplayerRoleFlags> GetCustomComponents()
  Returns
| Type | Description | 
|---|---|
| Dictionary<Type, MultiplayerRoleFlags> | Returns a Dictionary where the key is the component Type and the value is the MultiplayerRoleFlags.  | 
      
GetMultiplayerRoleMaskForComponentType(Type)
Gets the multiplayer role mask for a component type.
Declaration
public static MultiplayerRoleFlags GetMultiplayerRoleMaskForComponentType(Type type)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Type | type | The component type.  | 
      
Returns
| Type | Description | 
|---|---|
| MultiplayerRoleFlags | Returns the multiplayer role mask of the component type.  | 
      
SetCustomComponents(Dictionary<Type, MultiplayerRoleFlags>)
Sets the list of custom components that are automatically selected for the entire project.
Declaration
public static void SetCustomComponents(Dictionary<Type, MultiplayerRoleFlags> customComponents)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Dictionary<Type, MultiplayerRoleFlags> | customComponents | A Dictionary where the key is the component Type and the value is the MultiplayerRoleFlags.  | 
      
SetMultiplayerRoleMaskForComponentType(Type, MultiplayerRoleFlags)
Sets the multiplayer role mask for a component type.
Declaration
public static void SetMultiplayerRoleMaskForComponentType(Type type, MultiplayerRoleFlags mask)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Type | type | The component type.  | 
      
| MultiplayerRoleFlags | mask | The multiplayer role mask to assing to the component type.  |