UserGameSettings

사용되지 않는 항목 표시

*이 콘텐츠는 AI(베타)를 사용해 번역되었으며, 오류가 있을 수 있습니다. 이 페이지를 영어로 보려면 여기를 클릭하세요.

만들 수 없음
사용자 설정
복제되지 않음

사용자 게임 설정은 단일 클래스로, UserSettings 단일 내에서 찾을 수 있습니다.사용자가 카메라와 캐릭터를 제어하는 방법과 관련된 다양한 영구 설정을 보유합니다.

이 개체에 액세스할 수 있는 방법은 다음과 같습니다. LocalScript를 통해:


UserSettings():GetService("UserGameSettings")

이 개체는 서버에서 목적이 없기 때문에 클라이언트에서만 사용되도록 의도되었습니다.Roblox Studio에서 테스트할 때 자신의 설정도 반영됩니다.

코드 샘플

A basic example that shows how you can listen to changes in the user's settings. With this code pasted into a LocalScript running in the StarterPlayerScripts, you can change settings in Roblox's game menu, and see their values appear in the output as detected changes.

UserGameSettings Listener

local gameSettings = UserSettings().GameSettings
local function onGameSettingChanged(nameOfSetting)
-- Fetch the value of this setting through a pcall to make sure we can retrieve it.
-- Sometimes the event fires with properties that LocalScripts can't access.
local canGetSetting, setting = pcall(function()
return gameSettings[nameOfSetting]
end)
if canGetSetting then
print("Your " .. nameOfSetting .. " has changed to: " .. tostring(setting))
end
end
gameSettings.Changed:Connect(onGameSettingChanged)

요약

속성

메서드

이벤트

속성

AllTutorialsDisabled

Roblox 스크립트 보안
병렬 읽기
Roblox 스크립트 보안
병렬 읽기

ChatVisible

Roblox 스크립트 보안
병렬 읽기

ComputerCameraMovementMode

병렬 읽기

ComputerMovementMode

병렬 읽기

ControlMode

병렬 읽기

Fullscreen

Roblox 스크립트 보안
병렬 읽기

GamepadCameraSensitivity

병렬 읽기

GraphicsOptimizationMode

Roblox 스크립트 보안
병렬 읽기

GraphicsQualityLevel

Roblox 스크립트 보안
병렬 읽기

HasEverUsedVR

Roblox 스크립트 보안
병렬 읽기

MasterVolume

Roblox 스크립트 보안
병렬 읽기

MasterVolumeStudio

Roblox 스크립트 보안
병렬 읽기

MaxQualityEnabled

Roblox 스크립트 보안
병렬 읽기

MouseSensitivity

병렬 읽기

OnboardingsCompleted

Roblox 스크립트 보안
병렬 읽기

PartyVoiceVolume

Roblox 스크립트 보안
병렬 읽기

RCCProfilerRecordFrameRate

병렬 읽기

RCCProfilerRecordTimeFrame

병렬 읽기

RotationType

병렬 읽기

SavedQualityLevel

병렬 읽기

StartMaximized

복제되지 않음
스크립팅할 수 없음
Roblox 스크립트 보안
병렬 읽기

StartScreenPosition

복제되지 않음
스크립팅할 수 없음
Roblox 스크립트 보안
병렬 읽기

StartScreenSize

복제되지 않음
스크립팅할 수 없음
Roblox 스크립트 보안
병렬 읽기

TouchCameraMovementMode

병렬 읽기

TouchMovementMode

병렬 읽기

UsedCoreGuiIsVisibleToggle

Roblox 스크립트 보안
병렬 읽기

UsedCustomGuiIsVisibleToggle

Roblox 스크립트 보안
병렬 읽기

UsedHideHudShortcut

Roblox 스크립트 보안
병렬 읽기

VREnabled

Roblox 스크립트 보안
병렬 읽기

VRRotationIntensity

Roblox 스크립트 보안
병렬 읽기

VRSmoothRotationEnabled

Roblox 스크립트 보안
병렬 읽기

VignetteEnabled

Roblox 스크립트 보안
병렬 읽기

메서드

GetCameraYInvertValue


반환

GetOnboardingCompleted

매개 변수

onboardingId: string
기본값: ""

반환

InFullScreen


반환

InStudioMode


반환

SetCameraYInvertVisible

()

반환

()

SetGamepadCameraSensitivityVisible

()

반환

()

SetOnboardingCompleted

()

매개 변수

onboardingId: string
기본값: ""

반환

()

이벤트

FullscreenChanged

매개 변수

isFullscreen: boolean

코드 샘플

Full Screen Mode Detection

local gameSettings = UserSettings().GameSettings
local function checkFullScreenMode()
local inFullscreen = gameSettings:InFullScreen()
if inFullscreen then
print("Full Screen mode enabled!")
else
print("Full Screen mode disabled!")
end
end
checkFullScreenMode()
gameSettings.FullscreenChanged:Connect(checkFullScreenMode)

StudioModeChanged

매개 변수

isStudioMode: boolean