Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetMultiplayerRoleForClassicTarget

Gets the multiplayer role that is going to be used for the provided build target.
Read time 1 minuteLast updated 13 days ago

Definition

GetMultiplayerRoleForClassicTarget(BuildTarget)

Gets the multiplayer role that is going to be used for the provided build target.
public static MultiplayerRoleFlags GetMultiplayerRoleForClassicTarget(BuildTarget buildTarget)

Parameters

buildTarget

The build target to get the multiplayer role mask for.

Returns

Type

Description

MultiplayerRoleFlagsReturns the multiplayer role mask for the provided build target.

GetMultiplayerRoleForClassicTarget(BuildTarget, StandaloneBuildSubtarget)

Gets the multiplayer role that is going to be used for the provided build target and subtarget.
public static MultiplayerRoleFlags GetMultiplayerRoleForClassicTarget(BuildTarget buildTarget, StandaloneBuildSubtarget subtarget)

Parameters

buildTarget

The build target to get the multiplayer role mask for.

The subtarget to get the multiplayer role mask for.

Returns

Type

Description

MultiplayerRoleFlagsReturns the multiplayer role mask for the provided build target and subtarget.