# Is hot-reload broken in UE4 (Linux)?

**URL:** <https://forums.unrealengine.com/t/is-hot-reload-broken-in-ue4-linux/422412>\
**Category:** Platform & Builds\
**Tags:** Linux, build, unreal-engine, editor, CPP, question, hot-reload\
**Created:** [April 11, 2018, 8:14pm UTC](https://forums.unrealengine.com/t/is-hot-reload-broken-in-ue4-linux/422412 "2018-04-11T20:14:06Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![DBulczak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DBulczak](https://forums.unrealengine.com/u/DBulczak)\
**Post date:** [August 19, 2018, 2:26pm UTC](https://forums.unrealengine.com/t/is-hot-reload-broken-in-ue4-linux/422412/3 "2018-08-19T14:26:51Z")

</div>

Just to answer my own question and maybe to help some Linux users. I gave UE4 on Linux another try and have looked more into the Unreal Build Tool and have played around with parameters. You can define a randomly named module as a parameter and then hot reload works fine. Especially the `-ModuleWithSuffix` parameter is necessary for a proper hot reload functionality.

I have written a bash script `ue4build` that looks like

```
#!/bin/bash
UNREAL_PATH=[PATH_TO_YOUR]/UnrealEngine;
RANDNUM=$(( ( RANDOM % 1000 ) + 1000 ));
CURR_DIR=`pwd`;
PROJ_NAME=$(basename ${1%.uproject});
PROJ_NAME_MODULE="${PROJ_NAME},${RANDNUM}";
${UNREAL_PATH}/Engine/Build/BatchFiles/Linux/RunMono.sh ${UNREAL_PATH}/Engine/Binaries/DotNET/UnrealBuildTool.exe -ModuleWithSuffix=$PROJ_NAME_MODULE Linux Development -TargetType=Editor -Project="${CURR_DIR}/${PROJ_NAME}.uproject" -canskiplink "${CURR_DIR}/${PROJ_NAME}.uproject" -progress

```

Put the script in one of your executable directories and make it executable with `chmod u+x`. Then you can build your project with hot reload just by using the following command

```
ue4build PATH_TO/YOUR_UE4_PROJECT.uproject
```

---

_[View the full topic](https://forums.unrealengine.com/t/is-hot-reload-broken-in-ue4-linux/422412)._
