If you build your project within vscode under Linux, you should noticed that the UE5 does not Hot Reload the newly c++ code.
And after some researches, I found a solution to resolve this issue.
First, You need install the vscode extension.
Then, Generate vscode project file
And edit your .vscode/tasks.json
file
{
"version": "2.0.0",
"tasks": [
{
"label": "MyProjectEditor Linux Development Build",
"group": "build",
"command": "Engine/Build/BatchFiles/Linux/Build.sh",
"args": [
"-ModuleWithSuffix=${workspaceFolderBasename},${input:randomNumber}", // Add this line
"MyProjectEditor",
"Linux",
"Development",
"/Ly/code/games/MyProject/MyProject.uproject",
"-waitmutex"
],
"problemMatcher": "$msCompile",
"type": "shell",
"options": {
"cwd": "/Ly/apps/unreal-engine"
}
}
],
"inputs": [ // And add this field
{
"id": "randomNumber",
"type": "command",
"command": "shellCommand.execute",
"args": {
"command": "echo $(( ( RANDOM % 1000 ) + 1000 ))"
}
}
]
}
After these steps, hot reload should works perfectly.
This works for me with UE_5.1.1 under Arch Linux
Let me know if you have any other issue.
Sorry, my English is not good.