Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetMultiplayerRoleForClassicTarget

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

Definition

SetMultiplayerRoleForClassicTarget(BuildTarget, MultiplayerRoleFlags)

Sets the multiplayer role that is going to be used for the provided build target.
public static void SetMultiplayerRoleForClassicTarget(BuildTarget buildTarget, MultiplayerRoleFlags mask)

Parameters

buildTarget

The build target to set the multiplayer role mask for.

The multiplayer role mask to assing to the build target.

SetMultiplayerRoleForClassicTarget(BuildTarget, StandaloneBuildSubtarget, MultiplayerRoleFlags)

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

Parameters

buildTarget

The build target to set the multiplayer role mask for.

The subtarget to set the multiplayer role mask for.

The multiplayer role mask to assing to the build target and subtarget.