Article directory
1. Achieve goals
Start the game as an independent process (Standalone Game) in UE, and 运行时动态修改
change the screen resolution of the game window from 1000x800 to 600x400 as shown in the figure below.
2. Implementation process
Refer to documents and materials r.SetRes
to realize dynamic control of window resolution by inputting console commands.
That is, r.SetRes width x height, where "x" is a lowercase letter X, not a multiplication sign.
You can enter commands directly on the console command line or use blueprints to enter and execute them indirectly.
2.1 Enter commands directly on the console
(1) Enter "~" to 运行时
bring up the console
(2) Enter the command r.SetRes 600x400