UserGameSettingsクラス

クラスサービス(game:GetService("UserGameSettings")で取り出す)Instance.newでは作れない日本語解説は準備中

ひとことで言うと

UserGameSettingsは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。

公式の説明(英語):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.

クラスの関係

受け継いでいるクラス:Object → Instance → UserGameSettings

プロパティ(12)

名前と書き方説明
ComputerCameraMovementMode
UserGameSettings.ComputerCameraMovementMode: ComputerCameraMovementMode
The camera movement mode currently in-use by the client on desktop.
ComputerMovementMode
UserGameSettings.ComputerMovementMode: ComputerMovementMode
The type of controls being used by the client on desktop.
GamepadCameraSensitivity
UserGameSettings.GamepadCameraSensitivity: float
Describes how sensitive the camera is when using a gamepad.
MouseSensitivity
UserGameSettings.MouseSensitivity: float
A float between 0 and 4 representing the sensitivity of the client's camera sensitivity.
RCCProfilerRecordFrameRate
UserGameSettings.RCCProfilerRecordFrameRate: int
Internal MicroProfiler setting specifying the frame rate used when capturing server-side RCC profiler data.
RCCProfilerRecordTimeFrame
UserGameSettings.RCCProfilerRecordTimeFrame: int
Internal MicroProfiler setting specifying the duration over which server-side RCC profiler data is captured.
RotationType
UserGameSettings.RotationType: RotationType
Controls how the client's character is rotated.
SavedQualityLevel
UserGameSettings.SavedQualityLevel: SavedQualitySetting
The graphics quality level set by the client.
TouchCameraMovementMode
UserGameSettings.TouchCameraMovementMode: TouchCameraMovementMode
The camera type in-use by the client while on a mobile device.
TouchMovementMode
UserGameSettings.TouchMovementMode: TouchMovementMode
The type of controls being used by the client on a mobile device.
VignetteEnabled
UserGameSettings.VignetteEnabled: boolean
Indicates whether the VR vignette comfort effect is enabled.
VRSmoothRotationEnabled
UserGameSettings.VRSmoothRotationEnabled: boolean
Indicates whether smooth rotation is used instead of snap rotation in VR.

メソッド(7)

名前と書き方説明
GetCameraYInvertValue
UserGameSettings:GetCameraYInvertValue(): int
Returns the camera's Y-invert value.
GetOnboardingCompleted
UserGameSettings:GetOnboardingCompleted(onboardingId: string): boolean
Checks if onboarding has been completed.
InFullScreen
UserGameSettings:InFullScreen(): boolean
Returns true if the user's Roblox window is in full screen mode.
InStudioMode
UserGameSettings:InStudioMode(): boolean
Returns true if the client's game session is in Roblox Studio.
SetCameraYInvertVisible
UserGameSettings:SetCameraYInvertVisible(): ()
If called, Roblox toggles the menu option to invert the user's camera y axis.
SetGamepadCameraSensitivityVisible
UserGameSettings:SetGamepadCameraSensitivityVisible(): ()
If called, Roblox toggles the menu option to control the camera sensitivity with gamepads.
SetOnboardingCompleted
UserGameSettings:SetOnboardingCompleted(onboardingId: string): ()
Sets onboarding as completed.

イベント(2)

名前と書き方説明
FullscreenChanged
UserGameSettings.FullscreenChanged(isFullscreen: boolean)
Fires if the user's full screen mode is changed.
StudioModeChanged
UserGameSettings.StudioModeChanged(isStudioMode: boolean)
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.

受け継いでいるメンバー

Instance から受け継いでいるもの(46)

Archivable・Capabilities・IsInSandbox・Name・Parent・PredictionMode・Sandboxed・AddTag・ClearAllChildren・Clone・Destroy・FindFirstAncestor・FindFirstAncestorOfClass・FindFirstAncestorWhichIsA・FindFirstChild・FindFirstChildOfClass・FindFirstChildWhichIsA・FindFirstDescendant・GetActor・GetAttribute・GetAttributeChangedSignal・GetAttributes・GetChildren・GetDebugId・GetDescendants・GetFullName・GetStyled・GetStyledPropertyChangedSignal・GetTags・HasTag・IsAncestorOf・IsDescendantOf・IsPropertyModified・QueryDescendants・RemoveTag・ResetPropertyToDefault・SetAttribute・WaitForChild・AncestryChanged・AttributeChanged・ChildAdded・ChildRemoved・DescendantAdded・DescendantRemoving・Destroying・StyledPropertiesChanged

Object から受け継いでいるもの(4)

ClassName・GetPropertyChangedSignal・IsA・Changed

英語の説明とメンバーの一覧は、Roblox Creator Documentation(UserGameSettings)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。

執筆:鈴木孝昌官公庁のWeb・システム開発を担当する現役プロジェクトマネージャー。沖縄マイクラ部 クロスウェーブで、ロブロックス(Roblox)・マインクラフト(マイクラ)・Scratchなどのプログラミングを指導。マイクラカップ沖縄代表チームを指導(第6回・第7回、第7回TBS賞)。
沖縄マイクラ部で、子どもたちにロブロックス(Roblox)やマインクラフト(マイクラ)のプログラミングを教えています。プロフィールと編集方針
Instagramで教室の様子を見る
noteで記事を読む