I just found out that in PIE you can press F1 for wireframe, F2 for flatshaded?, and F3 for standard.
I accidentally hit F2 and and was surprised at how much cooler the game I’m working on looked.
I was wondering if it’s possible to set a setting somewhere so that the game will always be shown like that (like how it looks when F2 has been pressed). I mean, if I were to package and deploy the game, it would like just as it does in PIE with F2 pressed.
I don’t know what the graphic mode is called, it just kinda looks flat-shaded.
I googled around for UE4 hotkeys but can’t even find F2 as a hotkey on anyone’s chart.
Checking out the Editor Environment Settings> Generic Keyboard Shortcuts, it doesn’t exist in ANY of the options.
(There’s an F2 in to “rename” in Layer and Common Commands, but that’s it.)
I thought some kind of project setting in Rendering would do it, but I didn’t see anything in there that might produce that effect.
Sorry for the bump. But does nobody know how to do ? Maybe I could call a console command on begin play and force the game to press F2?
Edit: Nevermind, can’t figure how to force a button press. I’d still like to know how to force the game to look like how it does in PIE when you press F2 or at least know what that mode is called. I can’t find any literature about it.
You can use command ‘viewmode unlit’. However will not work in Shipping and is not a proper solution.
Instead of you should created shader with flat shaders (materials) that you put on your objects.
Make sure to call it once at beginning of your game’s logic.
Like shadowriver said you could play directly with the FEngineShowFlags (returned from GetEngineShowFlags()) to set and unset uneccessary rendering features.
Note: The second parameter is bPerspective, mine is set to false because i’m using an orthographic camera. Make sure the set it to true if you are using a Perspective camera