Provides an api for managing multiplayer roles in the editor.
| 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. |
| 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. |
| Event | Description |
|---|---|
| ActiveMultiplayerRoleChanged | Event that is invoked when the active multiplayer role mask changes. |