Service · inherits Instance
UserGameSettings
UserGameSettings is a singleton class found inside of the
UserSettings singleton. It holds various persistent settings relating
to how the user wants to control their camera, and their character.
About UserGameSettings
UserGameSettings is a singleton class found inside of the
UserSettings singleton. It holds various persistent settings relating
to how the user wants to control their camera, and their character.
The properties on this class reflect both the user-facing options exposed in the in-game settings menu (such as graphics quality, master volume, camera and control modes) as well as other contextual user-configurable state that is not surfaced in the menu itself (such as internal onboarding progress, VR comfort options, window layout, and debug or profiling configuration). As a result, some properties listed here may not correspond to anything visible in the settings UI, and many are restricted to internal Roblox scripts.
You can access this object from a LocalScript via:
UserSettings():GetService("UserGameSettings")
This object is intended to be used on the client only, as it serves no purpose on the server. It will also reflect your own settings when testing in Roblox Studio.
Properties 12
ComputerCameraMovementMode
: ComputerCameraMovementModeThe camera movement mode currently in-use by the client on desktop.ComputerMovementMode
: ComputerMovementModeThe type of controls being used by the client on desktop.GamepadCameraSensitivity
: floatDescribes how sensitive the camera is when using a gamepad.MouseSensitivity
: floatA float between 0 and 4 representing the sensitivity of the client's camera sensitivity.RCCProfilerRecordFrameRate
: intInternal MicroProfiler setting specifying the frame rate used when capturing server-side RCC profiler data.RCCProfilerRecordTimeFrame
: intInternal MicroProfiler setting specifying the duration over which server-side RCC profiler data is captured.RotationType
: RotationTypeControls how the client's character is rotated.SavedQualityLevel
: SavedQualitySettingThe graphics quality level set by the client.TouchCameraMovementMode
: TouchCameraMovementModeThe camera type in-use by the client while on a mobile device.TouchMovementMode
: TouchMovementModeThe type of controls being used by the client on a mobile device.VignetteEnabled
: booleanIndicates whether the VR vignette comfort effect is enabled.VRSmoothRotationEnabled
: booleanIndicates whether smooth rotation is used instead of snap rotation in VR.
Methods 7
GetCameraYInvertValue
() → intReturns the camera's Y-invert value.GetOnboardingCompleted
(onboardingId: string) → booleanChecks if onboarding has been completed.Checks whether or not the given onboarding has been completed yet, which is useful for avoiding showing the onboarding animation again.
If onboardingId is not one of the accepted IDs, an error is thrown.
The onboarding process is one-way. This means that, as a developer, you can force the onboarding process to completion but cannot reset it.
See also:
UserGameSettings.SetOnboardingCompleted, sets onboarding as completed
InFullScreen
() → booleanReturns true if the user's Roblox window is in full screen mode.InStudioMode
() → booleanReturns true if the client's game session is in Roblox Studio.SetCameraYInvertVisible
() → ()If called, Roblox toggles the menu option to invert the user's camera y axis.SetGamepadCameraSensitivityVisible
() → ()If called, Roblox toggles the menu option to control the camera sensitivity with gamepads.SetOnboardingCompleted
(onboardingId: string) → ()Sets onboarding as completed.Sets the given onboarding as completed, so it won't be shown again to the user the next time they play.
Currently, this function only accepts DynamicThumbstick, and it is used to persistently track whether or not the player has finished the tutorial for the Dynamic Thumbstick control scheme. If onboardingId is not one of the accepted IDs, an error is thrown.
The onboarding process is one-way. This means that, as a developer, you can force the onboarding process to completion but cannot reset it.
See also:
UserGameSettings.GetOnboardingCompleted, checks if onboarding has been completed
Events 2
FullscreenChanged
UserGameSettings.FullscreenChanged:Connect(function(isFullscreen))Fires if the user's full screen mode is changed.Fires if the user's full screen mode is changed. The event will only fire on desktop devices that can toggle full screen mode. The game will always be in full screen on mobile devices and consoles.
StudioModeChanged
UserGameSettings.StudioModeChanged:Connect(function(isStudioMode))Fired when the user's client switches between Studio mode and in-game mode. This gets fired periodically in Roblox Studio when a session starts.
UserGameSettings also has every member of Instance. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.