UI DPI Scale doesn't update after number of Local Players changes.

Hi [mention removed]​,

Haven’t encountered any issues with my fix (so far), though we’re quite early in development so it’s one that we’ll monitor (specifically for performance issues). Once change I did make since my original post was to use the split screen layout (found in the GameViewportClient) rather than the number of players, as this allows the UI obey correct scaling rules when splitscreen is force disabled (for menus/cutscenes etc).

Then, in our custom game viewport client class (derived from UCommonGameViewportClient) I overrode the “NotifyPlayerAdded” and “NotifyPlayerRemoved” virtual functions and call the “ResetLastViewportSize” function within each of these functions!

Have attached the custom modification I made, it’s wrapped in the “if !WITH_EDITOR” macro as the issue itself only occurs outside of the editor (as seen in my original post) so wanted to keep things consistent

This code was added in UserInterfaceSettings.h, around lines 226-230 (with our engine change markup comments)

#if !WITH_EDITOR void ResetLastViewportSize() const { LastViewportSize.Reset(); } #endif