# How to: Console Commands every time Unreal Engine starts and the Game is played

**URL:** <https://forums.unrealengine.com/t/how-to-console-commands-every-time-unreal-engine-starts-and-the-game-is-played/156193>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [January 11, 2021, 7:30pm UTC](https://forums.unrealengine.com/t/how-to-console-commands-every-time-unreal-engine-starts-and-the-game-is-played/156193 "2021-01-11T19:30:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mrc](https://forums.unrealengine.com/u/mrc)\
**Post date:** [January 11, 2021, 7:30pm UTC](https://forums.unrealengine.com/t/how-to-console-commands-every-time-unreal-engine-starts-and-the-game-is-played/156193/1 "2021-01-11T19:30:56Z")

</div>

Hi guys,

currently I use quite a lot of commands inside the editor every time I open Unreal Engine, since Unreal Engine won´t remember the typed in commands. They are commands like:

- r.Shadow.CSMDepthBias 7
- r.Shadow.FilterMethod 1
- …

Is there an easy way to make Unreal Engine load these commands automatically every time it starts and also use them when the game is running of course.

Right now I haven´t found any solution I understand since I never did something with Blueprints, so it would be great if someone could give me a detailed explanation.

Thanks,  
Marcus

---

<div class="post-metadata">

**Author:** ![ConradG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ConradG](https://forums.unrealengine.com/u/ConradG)\
**Post date:** [January 11, 2021, 9:13pm UTC](https://forums.unrealengine.com/t/how-to-console-commands-every-time-unreal-engine-starts-and-the-game-is-played/156193/2 "2021-01-11T21:13:38Z")

</div>

There is a “Console Command” node you can use in a blueprint which can call those commands. You would place the console string in the node.

If it’s typing them out all the time that is the nuisance, try a simple txt file with them listed or bookmark this:  
[http://www.kosmokleaner.de/ownsoft/UE4CVarBrowser.html](http://www.kosmokleaner.de/ownsoft/UE4CVarBrowser.html)

---

<div class="post-metadata">

**Author:** ![mrc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mrc](https://forums.unrealengine.com/u/mrc)\
**Post date:** [January 12, 2021, 11:06am UTC](https://forums.unrealengine.com/t/how-to-console-commands-every-time-unreal-engine-starts-and-the-game-is-played/156193/3 "2021-01-12T11:06:39Z")

</div>

That sounds great. I am going to try and start this on startup and when playing the game and get back if it worked or not.

---

<div class="post-metadata">

**Author:** ![mrc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mrc](https://forums.unrealengine.com/u/mrc)\
**Post date:** [January 12, 2021, 12:09pm UTC](https://forums.unrealengine.com/t/how-to-console-commands-every-time-unreal-engine-starts-and-the-game-is-played/156193/4 "2021-01-12T12:09:48Z")

</div>

Hey Conrad,

it worked so far. Thanks! May I ask you some short questions about this?

Here is what I came up with following this workflow: [Running Blueprints at Editor Startup | Unreal Engine Documentation](https://docs.unrealengine.com/en-US/ProductionPipelines/ScriptingAndAutomation/Blueprints/StartupObjects/index.html)

 ![Oi.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/5/75bf28b4c2eb7efc6736542a9ae26017ceba9939.png)

---

<div class="post-metadata">

**Author:** ![Pouyad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pouyad](https://forums.unrealengine.com/u/Pouyad)\
**Post date:** [March 24, 2024, 4:14am UTC](https://forums.unrealengine.com/t/how-to-console-commands-every-time-unreal-engine-starts-and-the-game-is-played/156193/5 "2024-03-24T04:14:17Z")

</div>

IDk if you are still doing this through BP.  
but this also helps, for you or anyone who comes across this post for the same solutions.

> **[Console Variables Editor](https://dev.epicgames.com/documentation/en-us/unreal-engine/console-variables-editor?application_version=5.0)**
>
> View and modify all console variables used in your project using the Console Variables Editor, and share console variable settings in a preset across pr...

---

<div class="post-metadata">

**Author:** ![Pouyad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pouyad](https://forums.unrealengine.com/u/Pouyad)\
**Post date:** [March 24, 2024, 4:15am UTC](https://forums.unrealengine.com/t/how-to-console-commands-every-time-unreal-engine-starts-and-the-game-is-played/156193/6 "2024-03-24T04:15:22Z")

</div>

IDk if you are still doing this through BP.  
but this also helps, for you or anyone who comes across this post for the same solutions.

[https://dev.epicgames.com/documentation/en-us/unreal-engine/console-variables-editor?application\_version=5.0](https://dev.epicgames.com/documentation/en-us/unreal-engine/console-variables-editor?application_version=5.0)

---

<div class="post-metadata">

**Author:** ![Cai\_ZhiYuan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cai\_ZhiYuan](https://forums.unrealengine.com/u/Cai_ZhiYuan)\
**Post date:** [October 4, 2024, 5:02am UTC](https://forums.unrealengine.com/t/how-to-console-commands-every-time-unreal-engine-starts-and-the-game-is-played/156193/7 "2024-10-04T05:02:57Z")

</div>

this is nice, but not work either, as this is also not permanent. Just you can see all the changes you made and their values.
