Class MultiplayerPlayModePreferences
Developer preferences for the MultiplayerPlayModeWindow. Only applicable in editor.
Inheritance
MultiplayerPlayModePreferences
Assembly: Unity.NetCode.dll
Syntax
public static class MultiplayerPlayModePreferences
Fields
DefaultSimulatorEnabled
Declaration
public const bool DefaultSimulatorEnabled = true
Field Value
DefaultSimulatorView
Declaration
public const SimulatorView DefaultSimulatorView = PingView
Field Value
Properties
ApplyLoggerSettings
Declaration
public static bool ApplyLoggerSettings { get; set; }
Property Value
AutoConnectionAddress
Declaration
public static string AutoConnectionAddress { get; set; }
Property Value
AutoConnectionPort
Declaration
public static ushort AutoConnectionPort { get; set; }
Property Value
ClientSimulatorParameters
Declaration
public static SimulatorUtility.Parameters ClientSimulatorParameters { get; }
Property Value
CurrentNetworkSimulatorPreset
Declaration
public static string CurrentNetworkSimulatorPreset { get; set; }
Property Value
IsCurrentNetworkSimulatorPresetCustom
True if is user-defined, custom preset.
Declaration
public static bool IsCurrentNetworkSimulatorPresetCustom { get; }
Property Value
LagSpikeSelectionIndex
There is a hardcoded list of lag spike values. This is the saved indexer.
Declaration
public static int LagSpikeSelectionIndex { get; set; }
Property Value
PacketDelayMs
Declaration
public static int PacketDelayMs { get; set; }
Property Value
PacketDropPercentage
Declaration
public static int PacketDropPercentage { get; set; }
Property Value
PacketFuzzPercentage
Declaration
public static int PacketFuzzPercentage { get; set; }
Property Value
PacketJitterMs
Declaration
public static int PacketJitterMs { get; set; }
Property Value
RequestedNumThinClients
Declaration
public static int RequestedNumThinClients { get; set; }
Property Value
RequestedPlayType
Declaration
public static ClientServerBootstrap.PlayType RequestedPlayType { get; set; }
Property Value
RequestedSimulatorView
Editor "mode". Stores the preferred mode that the Simulator is in.
Declaration
public static SimulatorView RequestedSimulatorView { get; set; }
Property Value
ShowAllSimulatorPresets
If true, all simulator presets will be visible, rather than only platform specific ones.
Declaration
public static bool ShowAllSimulatorPresets { get; set; }
Property Value
SimulateDedicatedServer
Declaration
public static bool SimulateDedicatedServer { get; set; }
Property Value
SimulatorEnabled
Stores whether or not the user wishes to use the client simulator UTP module.
Declaration
public static bool SimulatorEnabled { get; set; }
Property Value
TargetLogLevel
Declaration
public static NetDebug.LogLevelType TargetLogLevel { get; set; }
Property Value
TargetShouldDumpPackets
Declaration
public static bool TargetShouldDumpPackets { get; set; }
Property Value
ThinClientCreationFrequency
Denotes how many thin client worlds to spawn per second when in the editor (via the AutomaticThinClientWorldsUtility utility),
assuming that feature is enabled.
Declaration
public static float ThinClientCreationFrequency { get; set; }
Property Value
WarnAboveAverageBatchedTicksPerFrame
If the average is above this percent a warning will be displayed. Set to 0 to always warn when ticks are batched.
Declaration
public static float WarnAboveAverageBatchedTicksPerFrame { get; set; }
Property Value
WarnBatchedTicks
If true, will force NetDebugSystem to display a warning when prediction ticks are batched.
Declaration
public static bool WarnBatchedTicks { get; set; }
Property Value
WarnBatchedTicksRollingWindow
Specifies the number of frames the rolling average is calculated over.
Declaration
public static int WarnBatchedTicksRollingWindow { get; set; }
Property Value
Methods
ApplySimulatorPresetToPrefs(SimulatorPreset)
Apply the selected preset to the static, saved fields.
Clobbers any custom values the user may have entered.
Declaration
public static void ApplySimulatorPresetToPrefs(SimulatorPreset preset)
Parameters
Returns true if the editor-inputted address is a valid connection address.
Declaration
public static bool IsEditorInputtedAddressValidForConnect(out NetworkEndpoint ep)
Parameters
Returns