배우기
엔진 클래스
StudioDeviceSimulatorService
만들 수 없음
서비스
복제되지 않음

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



API 참조
메서드
CreateDeviceAsync
생성
플러그인 보안
StudioDeviceSimulatorService:CreateDeviceAsync(config:Dictionary):string
매개 변수
config:Dictionary
반환
코드 샘플
장치 생성 예제
local id = Simulator:CreateDeviceAsync({
Name = "내 맞춤형 태블릿",
Width = 2560,
Height = 1600,
PixelDensity = 300,
DeviceForm = Enum.DeviceForm.Tablet,
})

GetDeviceAsync
생성
플러그인 보안
StudioDeviceSimulatorService:GetDeviceAsync():string
반환

GetDeviceInfoAsync
생성
플러그인 보안
StudioDeviceSimulatorService:GetDeviceInfoAsync(deviceId:string):Dictionary
매개 변수
deviceId:string

GetDeviceListAsync
생성
플러그인 보안
StudioDeviceSimulatorService:GetDeviceListAsync():{any}
반환
코드 샘플
장치 목록 가져오기 예제
local Simulator = game:GetService("StudioDeviceSimulatorService")
local devices = Simulator:GetDeviceListAsync()
for _, deviceId in devices do
print(deviceId)
end

GetOrientationAsync
생성
플러그인 보안
StudioDeviceSimulatorService:GetOrientationAsync():Enum.ScreenOrientation

GetPixelDensityAsync
생성
플러그인 보안
StudioDeviceSimulatorService:GetPixelDensityAsync():number
반환

GetResolutionAsync
생성
플러그인 보안
StudioDeviceSimulatorService:GetResolutionAsync():Vector2
반환

GetScalingModeAsync
생성
플러그인 보안
StudioDeviceSimulatorService:GetScalingModeAsync():Enum.DeviceSimulatorScalingMode

RemoveDeviceAsync
생성
플러그인 보안
StudioDeviceSimulatorService:RemoveDeviceAsync(deviceId:string):()
매개 변수
deviceId:string
반환
()

SetDeviceAsync
생성
플러그인 보안
StudioDeviceSimulatorService:SetDeviceAsync(deviceId:string):()
매개 변수
deviceId:string
반환
()

SetOrientationAsync
생성
플러그인 보안
StudioDeviceSimulatorService:SetOrientationAsync(orientation:Enum.ScreenOrientation):()
매개 변수
반환
()

SetPixelDensityAsync
생성
플러그인 보안
StudioDeviceSimulatorService:SetPixelDensityAsync(density:number):()
매개 변수
density:number
반환
()

SetResolutionAsync
생성
플러그인 보안
StudioDeviceSimulatorService:SetResolutionAsync(
width:number, height:number
):()
매개 변수
width:number
height:number
반환
()

SetScalingModeAsync
생성
플러그인 보안
StudioDeviceSimulatorService:SetScalingModeAsync(mode:Enum.DeviceSimulatorScalingMode):()
반환
()

StopSimulationAsync
생성
플러그인 보안
StudioDeviceSimulatorService:StopSimulationAsync():()
반환
()

UpdateDeviceAsync
생성
플러그인 보안
StudioDeviceSimulatorService:UpdateDeviceAsync(
deviceId:string, config:Dictionary
):()
매개 변수
deviceId:string
config:Dictionary
반환
()
코드 샘플
디바이스 업데이트 예제
Simulator:UpdateDeviceAsync(id, {
Name = "내 맞춤형 태블릿",
Width = 2732,
Height = 2048,
PixelDensity = 264,
DeviceForm = Enum.DeviceForm.Tablet,
})

이벤트
ConfigurationChanged
플러그인 보안
StudioDeviceSimulatorService.ConfigurationChanged():RBXScriptSignal
코드 샘플
구성 변경 예제
Simulator.ConfigurationChanged:Connect(function()
local deviceId = Simulator:GetDeviceAsync()
if deviceId ~= "default" then
local res = Simulator:GetResolutionAsync()
print(string.format("활성: %s @ %dx%d", deviceId, res.X, res.Y))
end
end)

©2026 Roblox Corporation. Roblox 및 Roblox 로고, 'Powering Imagination'은 미국 및 기타 국가 내 당사의 등록 및 미등록 상표입니다.