Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

EditorMultiplayerRolesManager

class in Unity.Multiplayer.Editor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Provides an api for managing multiplayer roles in the editor.

Static Properties

Property Description
ActiveMultiplayerRoleMask Gets or sets the active multiplayer role mask.
EnableMultiplayerRoles Enables multiplayer roles for the project.
EnableSafetyChecks Enables 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
GetMultiplayerRoleForBuildProfile Gets the multiplayer role that is going to be used for the provided build profile.
GetMultiplayerRoleForClassicTarget Gets the multiplayer role that is going to be used for the provided build target.
GetMultiplayerRoleMaskForComponent Gets the multiplayer role mask for a Component.
GetMultiplayerRoleMaskForGameObject Gets the multiplayer role mask for a GameObject.
GetMultiplayerRoleStringForBuildProfile Gets the multiplayer role string that is going to be used for the provided build profile.
SetMultiplayerRoleForBuildProfile Sets the multiplayer role mask that is going to be used for the provided build profile.
SetMultiplayerRoleForClassicTarget Sets the multiplayer role that is going to be used for the provided build target.
SetMultiplayerRoleMaskForComponent Sets the multiplayer role mask for a Component.
SetMultiplayerRoleMaskForGameObject Sets the multiplayer role mask for a GameObject.

Events

Event Description
ActiveMultiplayerRoleChanged Event that is invoked when the active multiplayer role mask changes.