You can do it from config.
C:\Users[NAME]\Documents\Unreal Projects[MyProject]\Saved\Config\Windows\EditorPerProjectUserSettings.ini
Line 129: EditorPerProjectUserSettings.HotReload=True
and other
C:\Users[User]\Documents\Unreal Projects[MyProject]\Intermediate\Config\CoalescedSourceConfigs\EditorPerProjectUserSettings.ini
I tried adding the following to UE4Editor.Target.cs:
public override void SetupGlobalEnvironment(
TargetInfo Target,
ref LinkEnvironmentConfiguration OutLinkEnvironmentConfiguration,
ref CPPEnvironmentConfiguration OutCPPEnvironmentConfiguration
)
{
// added this line to the existing method
OutCPPEnvironmentConfiguration.Definitions.Add("WITH_HOT_RELOAD_CTORS=0");
}
But it didn’t work, I kept on having the same problem. So I tried adding to the projectEditor.Target.cs, and had no success.
The 4.8 release notes got out with these instructions:
Auto-generation of the new constructors can be disabled by defining WITH_HOT_RELOAD_CTORS macro to 0 and setting [Core.System] UseVTableConstructors to False in BaseEngine.ini.
Note that disabling this feature may result in crashes when performing hot reload.
Apparently, I was missing the additional ini setting.