学ぶ
エンジンクラス
UserGameSettings
作成できません
サービス
複製されていません

*このコンテンツは、ベータ版のAI(人工知能)を使用して翻訳されており、エラーが含まれている可能性があります。このページを英語で表示するには、 こちら をクリックしてください。


概要
継承されたメンバー
コードサンプル
ユーザーゲーム設定リスナー
local gameSettings = UserSettings().GameSettings
local function onGameSettingChanged(nameOfSetting)
-- この設定の値を取得するためにpcallを使用して確実に取得できるようにします。
-- 時々、LocalScriptsがアクセスできないプロパティでイベントがトリガーされることがあります。
local canGetSetting, setting = pcall(function()
return gameSettings[nameOfSetting]
end)
if canGetSetting then
print("あなたの " .. nameOfSetting .. " が次のように変更されました: " .. tostring(setting))
end
end
gameSettings.Changed:Connect(onGameSettingChanged)

APIリファレンス
プロパティ
AllTutorialsDisabled
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.AllTutorialsDisabled:boolean

BadgeVisible
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.BadgeVisible:boolean

CameraMode
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.CameraMode:Enum.CustomCameraMode

ChatVisible
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.ChatVisible:boolean

ComputerCameraMovementMode
並列読み取り
機能: Input
UserGameSettings.ComputerCameraMovementMode:Enum.ComputerCameraMovementMode

ComputerMovementMode
並列読み取り
機能: Input
UserGameSettings.ComputerMovementMode:Enum.ComputerMovementMode

ControlMode
非推奨

Fullscreen
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.Fullscreen:boolean

GamepadCameraSensitivity
並列読み取り
機能: Input
UserGameSettings.GamepadCameraSensitivity:number

GraphicsOptimizationMode
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.GraphicsOptimizationMode:Enum.GraphicsOptimizationMode

GraphicsQualityLevel
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.GraphicsQualityLevel:number

HasEverUsedVR
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.HasEverUsedVR:boolean

MasterVolume
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.MasterVolume:number

MasterVolumeStudio
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.MasterVolumeStudio:number

MaxQualityEnabled
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.MaxQualityEnabled:boolean

MouseSensitivity
並列読み取り
機能: Input
UserGameSettings.MouseSensitivity:number

OnboardingsCompleted
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.OnboardingsCompleted:string

PartyVoiceVolume
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.PartyVoiceVolume:number

PeoplePageLayout
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.PeoplePageLayout:Enum.PeoplePageLayout

PlayerListVisible
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.PlayerListVisible:boolean

PlayerNamesEnabled
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.PlayerNamesEnabled:boolean

RCCProfilerRecordFrameRate
並列読み取り
UserGameSettings.RCCProfilerRecordFrameRate:number

RCCProfilerRecordTimeFrame
並列読み取り
UserGameSettings.RCCProfilerRecordTimeFrame:number

RotationType
並列読み取り
機能: Input
UserGameSettings.RotationType:Enum.RotationType

SavedQualityLevel
並列読み取り
機能: Players
UserGameSettings.SavedQualityLevel:Enum.SavedQualitySetting

StartMaximized
複製されていません
スクリプト作成できません
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.StartMaximized:boolean

StartScreenPosition
複製されていません
スクリプト作成できません
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.StartScreenPosition:Vector2

StartScreenSize
複製されていません
スクリプト作成できません
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.StartScreenSize:Vector2

TouchCameraMovementMode
並列読み取り
機能: Input
UserGameSettings.TouchCameraMovementMode:Enum.TouchCameraMovementMode

TouchMovementMode
並列読み取り
機能: Input
UserGameSettings.TouchMovementMode:Enum.TouchMovementMode

UsedCoreGuiIsVisibleToggle
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.UsedCoreGuiIsVisibleToggle:boolean

UsedCustomGuiIsVisibleToggle
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.UsedCustomGuiIsVisibleToggle:boolean

UsedHideHudShortcut
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.UsedHideHudShortcut:boolean

VignetteEnabled
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.VignetteEnabled:boolean

VREnabled
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.VREnabled:boolean

VRRotationIntensity
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.VRRotationIntensity:number

VRSmoothRotationEnabled
Robloxのスクリプトセキュリティ
並列読み取り
UserGameSettings.VRSmoothRotationEnabled:boolean

方法
GetCameraYInvertValue
機能: Input
UserGameSettings:GetCameraYInvertValue():number
戻り値

GetOnboardingCompleted
機能: Players
UserGameSettings:GetOnboardingCompleted(onboardingId:string):boolean
パラメータ
onboardingId:string
戻り値

InFullScreen
機能: Players
UserGameSettings:InFullScreen():boolean
戻り値

InStudioMode
機能: Players
UserGameSettings:InStudioMode():boolean
戻り値

SetCameraYInvertVisible
機能: Input
UserGameSettings:SetCameraYInvertVisible():()
戻り値
()

SetGamepadCameraSensitivityVisible
機能: Input
UserGameSettings:SetGamepadCameraSensitivityVisible():()
戻り値
()

SetOnboardingCompleted
機能: Players
UserGameSettings:SetOnboardingCompleted(onboardingId:string):()
パラメータ
onboardingId:string
戻り値
()

イベント
FullscreenChanged
UserGameSettings.FullscreenChanged(isFullscreen:boolean):RBXScriptSignal
パラメータ
isFullscreen:boolean
コードサンプル
フルスクリーンモード検出
local gameSettings = UserSettings().GameSettings
local function checkFullScreenMode()
local inFullscreen = gameSettings:InFullScreen()
if inFullscreen then
print("フルスクリーンモードが有効です!")
else
print("フルスクリーンモードが無効です!")
end
end
checkFullScreenMode()
gameSettings.FullscreenChanged:Connect(checkFullScreenMode)

StudioModeChanged
UserGameSettings.StudioModeChanged(isStudioMode:boolean):RBXScriptSignal
パラメータ
isStudioMode:boolean

©2026 Roblox Corporation。Roblox(ロブロックス)、RobloxロゴおよびPowering Imaginationは、米国並びにその他の国における登録商標および非登録商標です。