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, Multiplayer |
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 |
---|---|
Multiplayer |
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, Multiplayer |
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. |
Multiplayer |
mask | The multiplayer role mask to assing to the component type. |