Unreal Engine – Edit or Update the Ini File

The instructions below are specifically aimed towards adding Cvars (console commands) into the Default Engine Ini file, but Ini files can be used for editing other settings as well. These instructions are also for Windows users, but the process should be similar for Mac or Linux users.

LOCATE THE INI FILE:

1. Locate your Unreal Engine Project folder (using a Windows folder browser) and then in that folder find the Config folder.

For Example: Projects>Game_Name>Config

2. In the Config Folder – Locate the DefaultEngine Ini File (see example image below).

3. Open this file.

This is just a text file so it will open with Notepad or another program such as Notepad++ that edits text files.

EDITING INI FILE:

Find a space in the file to add the cvars. I usually add my at the top of the file, below the game URL.

Then add as the first line [SystemSettings] in Brackets, and then below that add the cvars (console commands) you need to add.

[SystemSettings]

r.fog=0

Foliage.forcelod=0

The settings above will turn off fog and force LOD 0.

See the example image below:

Make sure not to add lines that are already there as you can just edit them (use ctrl F to search for lines). Also keep a space above and below where you add the new commands (including the SystemSettings Line) so they are easy to locate.

Below in my DefaultEngine Ini file – I have turned off Fog and Forced lod 0. You probably will never need to use the fog command as it’s better to control in the editor fog settings, but it’s a good way to test if your cvar is working or not through the Ini file.

Ini DefaultEngine File

CHECK IT HAS WORKED:

Open up your project and in the editor check these have worked by searching in the console command panel (you can also use the Tilde key to open this panel). Search for the command, add a space and then a question mark. E.g: r.fog ?

Examples Below: Both Settings have been added via the Ini File as it says below in the reference images and any fog will be turned off and LOD 0 will be forced.

FORCE LOD:

FOG:
Fog Test

For more tips and tutorials for Unreal Engine – please see the tutorials and tips page or the Unreal Engine Blueprint tutorials page.