EditorMultiplayerRolesManager
Provides an api for managing multiplayer roles in the editor.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Class
- Namespace: Unity.Multiplayer.Editor
- Assembly: UnityEditor
public static class EditorMultiplayerRolesManager
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. |
Static Events
Member | Description |
|---|---|
| ActiveMultiplayerRoleChanged | Event that is invoked when the active multiplayer role mask changes. |
Classes
Class | Description |
|---|---|
| EditorMultiplayerRolesManager.AutomaticSelection | Provides an api for automatically stripping specific component types for the multiplayer roles. |