Preferencesclass

Holds information about the current user's preferences.

objectPreferences
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public static abstract sealed class Sandbox.Preferences

Properties13

Showing 13 properties

public static bool Sandbox.Preferences.ChatEnabled { get; set; }PUBLICSTATICGETSET

Returns:bool

public static float Sandbox.Preferences.ControllerJoystickDeadzone { get; set; }PUBLICSTATICGETSET

The percentage of joystick travel ignored around the neutral position.

Returns:float

public static float Sandbox.Preferences.ControllerLookPitchSpeed { get; set; }PUBLICSTATICGETSET

Returns:float

public static float Sandbox.Preferences.ControllerLookYawSpeed { get; set; }PUBLICSTATICGETSET

Returns:float

public static float Sandbox.Preferences.FieldOfView { get; set; }PUBLICSTATICGETSET

The user's preference for their field of view

Returns:float

public static bool Sandbox.Preferences.InvertMousePitch { get; set; }PUBLICSTATICGETSET

Returns:bool

public static bool Sandbox.Preferences.InvertMouseYaw { get; set; }PUBLICSTATICGETSET

Returns:bool

public static float Sandbox.Preferences.MusicVolume { get; set; }PUBLICSTATICGETSET

The user's preferred Music volume, as set in the options, clamped between 0 and 1

Returns:float

public static float Sandbox.Preferences.Sensitivity { get; set; }PUBLICSTATICGETSET

The mouse sensitivity

Returns:float

public static bool Sandbox.Preferences.StreamerMode { get; set; }PUBLICSTATICGETSET

When enabled, player usernames/avatars are replaced with anonymous versions.

Returns:bool

public static bool Sandbox.Preferences.Subtitles { get; set; }PUBLICSTATICGETSET

Whether the user wants to see subtitles for sounds that have them. Off by default - turned on in the audio settings.

Returns:bool

public static float Sandbox.Preferences.VoipVolume { get; set; }PUBLICSTATICGETSET

The user's preferred VOIP volume, as set in the options, clamped between 0 and 1

Returns:float

On this page