Page 1 of 1

[Solved] Exclude LuaGuiElement from 'UI Scale' setting

Posted: Tue Oct 21, 2025 11:32 pm
by thesixthroc
This request may sound odd, but it seems to opens the door to doing powerful things with GUIs.

As you can see from the attached video, it is possible to make seamless intersurface portals using GUIs. However, the effect of the user changing their UI scale has on cameras means it cannot be made to work for all users.

I am not sure if there is any better alternative API. Perhaps it could apply only to cameras. I assume the game state cannot understand these user settings at runtime.

Re: [2.0.71] Exclude LuaGuiElement from 'UI Scale' setting

Posted: Wed Oct 22, 2025 12:09 am
by protocol_1903
Try these, the first is the UI scale set in the game and the second is the UI scale of the monitor based on the device settings

https://lua-api.factorio.com/latest/cla ... play_scale
https://lua-api.factorio.com/latest/cla ... sity_scale

Re: [Solved] Exclude LuaGuiElement from 'UI Scale' setting

Posted: Wed Oct 22, 2025 12:26 am
by thesixthroc
Thanks, that does the trick.