StudioDeviceSimulatorServiceクラス
ひとことで言うと
StudioDeviceSimulatorServiceは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。
公式の説明(英語):Service allowing you to control Studio's Device Simulator.
クラスの関係
メソッド(16)
| 名前と書き方 | 説明 |
|---|---|
CreateDeviceAsyncStudioDeviceSimulatorService:CreateDeviceAsync(config: Dictionary): string | Creates a custom device preset and returns its ID. |
GetDeviceAsyncStudioDeviceSimulatorService:GetDeviceAsync(): string | Returns the ID of the currently active device, or "default" if none is active. |
GetDeviceInfoAsyncStudioDeviceSimulatorService:GetDeviceInfoAsync(deviceId: string): Dictionary | Returns the configuration dictionary for the specified device. |
GetDeviceListAsyncStudioDeviceSimulatorService:GetDeviceListAsync(): Array | Returns an array of all available device IDs. |
GetOrientationAsyncStudioDeviceSimulatorService:GetOrientationAsync(): ScreenOrientation | Returns the current simulated screen orientation. |
GetPixelDensityAsyncStudioDeviceSimulatorService:GetPixelDensityAsync(): float | Returns the current simulated pixel density in DPI. |
GetResolutionAsyncStudioDeviceSimulatorService:GetResolutionAsync(): Vector2 | Returns the current simulated viewport resolution. |
GetScalingModeAsyncStudioDeviceSimulatorService:GetScalingModeAsync(): DeviceSimulatorScalingMode | Returns how the simulated resolution currently maps to the Studio viewport. |
RemoveDeviceAsyncStudioDeviceSimulatorService:RemoveDeviceAsync(deviceId: string): () | Removes a custom device from the catalog. |
SetDeviceAsyncStudioDeviceSimulatorService:SetDeviceAsync(deviceId: string): () | Activates the specified device or stops simulation if "default" is passed. |
SetOrientationAsyncStudioDeviceSimulatorService:SetOrientationAsync(orientation: ScreenOrientation): () | Sets the simulated screen orientation. |
SetPixelDensityAsyncStudioDeviceSimulatorService:SetPixelDensityAsync(density: float): () | Overrides the simulated pixel density in DPI for the current session. |
SetResolutionAsyncStudioDeviceSimulatorService:SetResolutionAsync(width: int, height: int): () | Overrides the simulated viewport resolution for the current session. |
SetScalingModeAsyncStudioDeviceSimulatorService:SetScalingModeAsync(mode: DeviceSimulatorScalingMode): () | Sets how the simulated resolution maps to the Studio viewport. |
StopSimulationAsyncStudioDeviceSimulatorService:StopSimulationAsync(): () | Stops the active device simulation. |
UpdateDeviceAsyncStudioDeviceSimulatorService:UpdateDeviceAsync(deviceId: string, config: Dictionary): () | Updates the configuration of an existing custom device. |
イベント(1)
| 名前と書き方 | 説明 |
|---|---|
ConfigurationChangedStudioDeviceSimulatorService.ConfigurationChanged() | Fires when the active simulation state changes. |
受け継いでいるメンバー
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)
英語の説明とメンバーの一覧は、Roblox Creator Documentation(StudioDeviceSimulatorService)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。