Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


EditorMultiplayerRolesManager

Provides an api for managing multiplayer roles in the editor.
Read time 1 minuteLast updated 11 days ago

Definition

public static class EditorMultiplayerRolesManager

Static Properties

Property

Description

ActiveMultiplayerRoleMaskGets or sets the active multiplayer role mask.
EnableMultiplayerRolesEnables multiplayer roles for the project.
EnableSafetyChecksEnables safety checks for multiplayer roles. When entering play mode or building scenes, the editor will check and warn about any stripped GameObject or Component that is referenced by other objects and that can potentially cause null reference errors.

Static Methods

Method

Description

GetMultiplayerRoleForBuildProfileGets the multiplayer role that is going to be used for the provided build profile.
GetMultiplayerRoleForClassicTargetGets the multiplayer role that is going to be used for the provided build target.
GetMultiplayerRoleMaskForComponentGets the multiplayer role mask for a Component.
GetMultiplayerRoleMaskForGameObjectGets the multiplayer role mask for a GameObject.
GetMultiplayerRoleStringForBuildProfileGets the multiplayer role string that is going to be used for the provided build profile.
SetMultiplayerRoleForBuildProfileSets the multiplayer role mask that is going to be used for the provided build profile.
SetMultiplayerRoleForClassicTargetSets the multiplayer role that is going to be used for the provided build target.
SetMultiplayerRoleMaskForComponentSets the multiplayer role mask for a Component.
SetMultiplayerRoleMaskForGameObjectSets the multiplayer role mask for a GameObject.

Static Events

Member

Description

ActiveMultiplayerRoleChangedEvent that is invoked when the active multiplayer role mask changes.

Classes

Class

Description

EditorMultiplayerRolesManager.AutomaticSelectionProvides an api for automatically stripping specific component types for the multiplayer roles.