Ability to test game with predefined window scale

#1

I need to be able to define a scale value for output game window for when I test in editor, in some workspaces I don’t have a high-resolution monitor and it’s tedious to resize output window each time I want to test anything. like scale value in AVD.

0 Likes

#2

I agree that this would be great to have!

As a work around you can add DefOS as a Dependency and then check for the system and rescale the window.

local system = sys.get_sys_info().system_name
if system == "Windows" or system == "Darwin" then
    defos.set_view_size(0, 0, 720*0.5, 1280*0.5)
end
0 Likes

#3

Or use the built in message resize (Yes, the documentaiton examples have fallen away with the upgrade, we’re working on it done!):

local scale = 0.5
msg.post("@render:", "resize", { width = 720*scale, height = 1280*scale } )
5 Likes

#4

That’s way better! Then you don’t need to rely on DefOS.

3 Likes

#5

Ohhh nice!

0 Likes

#6

this is great, finally

0 Likes