Aprenda
Classe do mecanismo
UserGameSettings
Não criável
Serviço
Não replicado

*Este conteúdo é traduzido por IA (Beta) e pode conter erros. Para ver a página em inglês, clique aqui.


Resumo
Membros herdados
Amostras de código
Configuração do Usuário do Listener
local gameSettings = UserSettings().GameSettings
local function onGameSettingChanged(nameOfSetting)
-- Obtém o valor desta configuração através de um pcall para garantir que conseguimos recuperá-la.
-- Às vezes, o evento é disparado com propriedades que os LocalScripts não conseguem acessar.
local canGetSetting, setting = pcall(function()
return gameSettings[nameOfSetting]
end)
if canGetSetting then
print("Sua " .. nameOfSetting .. " mudou para: " .. tostring(setting))
end
end
gameSettings.Changed:Connect(onGameSettingChanged)

Referência API
Propriedades
AllTutorialsDisabled
Segurança do script Roblox
Ler Parallel
UserGameSettings.AllTutorialsDisabled:boolean

BadgeVisible
Segurança do script Roblox
Ler Parallel
UserGameSettings.BadgeVisible:boolean

CameraMode
Segurança do script Roblox
Ler Parallel
UserGameSettings.CameraMode:Enum.CustomCameraMode

ChatVisible
Segurança do script Roblox
Ler Parallel
UserGameSettings.ChatVisible:boolean

ComputerCameraMovementMode
Ler Parallel
Recursos: Input
UserGameSettings.ComputerCameraMovementMode:Enum.ComputerCameraMovementMode

ComputerMovementMode
Ler Parallel
Recursos: Input
UserGameSettings.ComputerMovementMode:Enum.ComputerMovementMode

ControlMode
Obsoleto

Fullscreen
Segurança do script Roblox
Ler Parallel
UserGameSettings.Fullscreen:boolean

GamepadCameraSensitivity
Ler Parallel
Recursos: Input
UserGameSettings.GamepadCameraSensitivity:number

GraphicsOptimizationMode
Segurança do script Roblox
Ler Parallel
UserGameSettings.GraphicsOptimizationMode:Enum.GraphicsOptimizationMode

GraphicsQualityLevel
Segurança do script Roblox
Ler Parallel
UserGameSettings.GraphicsQualityLevel:number

HasEverUsedVR
Segurança do script Roblox
Ler Parallel
UserGameSettings.HasEverUsedVR:boolean

MasterVolume
Segurança do script Roblox
Ler Parallel
UserGameSettings.MasterVolume:number

MasterVolumeStudio
Segurança do script Roblox
Ler Parallel
UserGameSettings.MasterVolumeStudio:number

MaxQualityEnabled
Segurança do script Roblox
Ler Parallel
UserGameSettings.MaxQualityEnabled:boolean

MouseSensitivity
Ler Parallel
Recursos: Input
UserGameSettings.MouseSensitivity:number

OnboardingsCompleted
Segurança do script Roblox
Ler Parallel
UserGameSettings.OnboardingsCompleted:string

PartyVoiceVolume
Segurança do script Roblox
Ler Parallel
UserGameSettings.PartyVoiceVolume:number

PeoplePageLayout
Segurança do script Roblox
Ler Parallel
UserGameSettings.PeoplePageLayout:Enum.PeoplePageLayout

PlayerListVisible
Segurança do script Roblox
Ler Parallel
UserGameSettings.PlayerListVisible:boolean

PlayerNamesEnabled
Segurança do script Roblox
Ler Parallel
UserGameSettings.PlayerNamesEnabled:boolean

RCCProfilerRecordFrameRate
Ler Parallel
UserGameSettings.RCCProfilerRecordFrameRate:number

RCCProfilerRecordTimeFrame
Ler Parallel
UserGameSettings.RCCProfilerRecordTimeFrame:number

RotationType
Ler Parallel
Recursos: Input
UserGameSettings.RotationType:Enum.RotationType

SavedQualityLevel
Ler Parallel
Recursos: Players
UserGameSettings.SavedQualityLevel:Enum.SavedQualitySetting

StartMaximized
Não replicado
Não scriptável
Segurança do script Roblox
Ler Parallel
UserGameSettings.StartMaximized:boolean

StartScreenPosition
Não replicado
Não scriptável
Segurança do script Roblox
Ler Parallel
UserGameSettings.StartScreenPosition:Vector2

StartScreenSize
Não replicado
Não scriptável
Segurança do script Roblox
Ler Parallel
UserGameSettings.StartScreenSize:Vector2

TouchCameraMovementMode
Ler Parallel
Recursos: Input
UserGameSettings.TouchCameraMovementMode:Enum.TouchCameraMovementMode

TouchMovementMode
Ler Parallel
Recursos: Input
UserGameSettings.TouchMovementMode:Enum.TouchMovementMode

UsedCoreGuiIsVisibleToggle
Segurança do script Roblox
Ler Parallel
UserGameSettings.UsedCoreGuiIsVisibleToggle:boolean

UsedCustomGuiIsVisibleToggle
Segurança do script Roblox
Ler Parallel
UserGameSettings.UsedCustomGuiIsVisibleToggle:boolean

UsedHideHudShortcut
Segurança do script Roblox
Ler Parallel
UserGameSettings.UsedHideHudShortcut:boolean

VignetteEnabled
Segurança do script Roblox
Ler Parallel
UserGameSettings.VignetteEnabled:boolean

VREnabled
Segurança do script Roblox
Ler Parallel
UserGameSettings.VREnabled:boolean

VRRotationIntensity
Segurança do script Roblox
Ler Parallel
UserGameSettings.VRRotationIntensity:number

VRSmoothRotationEnabled
Segurança do script Roblox
Ler Parallel
UserGameSettings.VRSmoothRotationEnabled:boolean

Métodos
GetCameraYInvertValue
Recursos: Input
UserGameSettings:GetCameraYInvertValue():number
Devolução

GetOnboardingCompleted
Recursos: Players
UserGameSettings:GetOnboardingCompleted(onboardingId:string):boolean
Parâmetros
onboardingId:string
Devolução

InFullScreen
Recursos: Players
UserGameSettings:InFullScreen():boolean
Devolução

InStudioMode
Recursos: Players
UserGameSettings:InStudioMode():boolean
Devolução

SetCameraYInvertVisible
Recursos: Input
UserGameSettings:SetCameraYInvertVisible():()
Devolução
()

SetGamepadCameraSensitivityVisible
Recursos: Input
UserGameSettings:SetGamepadCameraSensitivityVisible():()
Devolução
()

SetOnboardingCompleted
Recursos: Players
UserGameSettings:SetOnboardingCompleted(onboardingId:string):()
Parâmetros
onboardingId:string
Devolução
()

Eventos
FullscreenChanged
UserGameSettings.FullscreenChanged(isFullscreen:boolean):RBXScriptSignal
Parâmetros
isFullscreen:boolean
Amostras de código
Detecção de Modo de Tela Cheia
local gameSettings = UserSettings().GameSettings
local function checkFullScreenMode()
local inFullscreen = gameSettings:InFullScreen()
if inFullscreen then
print("Modo de Tela Cheia habilitado!")
else
print("Modo de Tela Cheia desabilitado!")
end
end
checkFullScreenMode()
gameSettings.FullscreenChanged:Connect(checkFullScreenMode)

StudioModeChanged
UserGameSettings.StudioModeChanged(isStudioMode:boolean):RBXScriptSignal
Parâmetros
isStudioMode:boolean

©2026 Roblox Corporation, Roblox, o logotipo Roblox e Powering Imagination estão entre nossas marcas registradas e não registradas nos EUA e em outros países.