C++ Code Inconsistently Fails After Opening Project, Requires Manual Hot Reload
Hello, I’ve encountered a strange issue with my project (all game logic is written in C++). Every time I open the project (with/without Visual Studio), some parts of my code stop working correctly – for example, Horizontal axis input don’t respond, while Vertical works but behaves incorrectly (wrong direction). Other features also seem partially broken, though it’s not consistent.
To fix this, I simply save any file – this triggers a hot reload and everything starts working perfectly. Alternatively, using the “Recompile Scripts” hotkey.
This happens every time, and it’s quite annoying because I have to manually trigger a recompile to get the game to run as intended.
I’m using Flax Engine 1.12, on Windows, with C++ scripting. It seems like the initial compilation or script loading at startup doesn’t properly initialize all C++ logic, and a manual hot reload is required.

