Hot Reloading constructor code

I was messing around with the Top Down game template and wanted to change the camera behavior, which is defined in the character class. However, it seems to reload only when I restart the editor. I assume it’s because the constructor code is only executed once when the level loads, although shouldn’t it also run when the game starts and the player is spawned in the level?

How can I Hot Reload constructor code?

I’m having this exact same issue. Hot-reloads do not seem to update anything done in the constructor, even though I can trigger a breakpoint and inspect the variable being set i.e. (CameraBoom->TargetArmLength) it’s almost like there’s a default object that’s not getting destroyed.

Hi Artless and ,

Thank you for mentioning this issue. This particular issue has been reported and a ticket entered to have it investigated.

I just wanted to provide a quick update on this issue. A fix was recently submitted to correct this. I ran a quick test using the fix and it appears that everything is working correctly now. If you built the Engine using source code, you can find the commit containing the fix here. If you are using the binary version of the Engine installed by the Launcher, the fix will be included in a future released version of the Engine.

Wrong place probably, but the links to the UE5 bugreporting doesn’t work for me for some reason…

Anywho, I have this exact (top down level, making changes in the constructor code) problem in UE5 5.0.0.
Restarting the editor is a must.