Ability to test game with predefined window scale

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.

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

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

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

3 Likes

Ohhh nice!

this is great, finally