API ReferenceSandbox
Preferencesclass
Holds information about the current user's preferences.
object→Preferences
Properties13
Showing 13 properties
public static bool Sandbox.Preferences.ChatEnabled { get; set; }
Returns:
bool—public static float Sandbox.Preferences.ControllerJoystickDeadzone { get; set; }
The percentage of joystick travel ignored around the neutral position.
Returns:
float—public static float Sandbox.Preferences.ControllerLookPitchSpeed { get; set; }
Returns:
float—public static float Sandbox.Preferences.ControllerLookYawSpeed { get; set; }
Returns:
float—public static float Sandbox.Preferences.FieldOfView { get; set; }
The user's preference for their field of view
Returns:
float—public static bool Sandbox.Preferences.InvertMousePitch { get; set; }
Returns:
bool—public static bool Sandbox.Preferences.InvertMouseYaw { get; set; }
Returns:
bool—public static float Sandbox.Preferences.MusicVolume { get; set; }
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; }
The mouse sensitivity
Returns:
float—public static bool Sandbox.Preferences.StreamerMode { get; set; }
When enabled, player usernames/avatars are replaced with anonymous versions.
Returns:
bool—public static bool Sandbox.Preferences.Subtitles { get; set; }
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 Sandbox.VoiceMode Sandbox.Preferences.VoiceMode { get; set; }
Voice chat activation mode.
public static float Sandbox.Preferences.VoipVolume { get; set; }
The user's preferred VOIP volume, as set in the options, clamped between 0 and 1
Returns:
float—No results match this filter.