Commit Graph

10 Commits

Author SHA1 Message Date
Ben Marsh
2ef7a96902 LiveCoding: Explicitly batch all EnableModules() commands, to prevent user command thread preempting the editor thread before it's finished adding everything. Prevents "Live coding ready" messages being spammed in the console window.
#rb none
#jira UE-71270

[CL 5361279 by Ben Marsh in 4.22 branch]
2019-03-11 14:12:36 -04:00
Ben Marsh
09cfa1adff Fix "Compile" button in toolbar using legacy hot reload when live coding startup is set to manual.
#rb none
#jira UE-71359

[CL 5361201 by Ben Marsh in 4.22 branch]
2019-03-11 13:57:27 -04:00
Ben Marsh
6ad306d80c LiveCoding: Fix setting for enabling/disabling live coding not being saved when modified via the toolbar.
#rb none
#jira UE-71362

[CL 5360814 by Ben Marsh in 4.22 branch]
2019-03-11 13:38:48 -04:00
Ben Marsh
e48c69bf58 LiveCoding: Tweaks to live coding settings.
* Compile dropdown now just contains a checkbox for enabling live coding.
* Compile dropdown has a link to open the editor preferences window.
* Live coding can be enabled from the editor settings window.
* Option to show the console on startup is now folded into the startup mode.
* Options in the editor settings window are greyed out unless live coding is enabled.

#rb none
#jira

[CL 5352692 by Ben Marsh in 4.22 branch]
2019-03-08 16:02:27 -05:00
Ben Marsh
fb09e8fd42 Move live coding settings back under the editor preferences window, since it's a user-specific thing.
#rb none
#jira UE-71126

[CL 5350227 by Ben Marsh in 4.22 branch]
2019-03-08 12:15:09 -05:00
Ben Marsh
cb5cc7340f LiveCoding: Disable the editor compile button while a compile is in progress.
#rb none
#jira UE-71077

[CL 5343160 by Ben Marsh in 4.22 branch]
2019-03-07 17:30:28 -05:00
Ben Marsh
fc966c05ea Restore code that was accidentally commented out while debugging.
#rb none
#jira
#rnx

[CL 5341380 by Ben Marsh in 4.22 branch]
2019-03-07 16:01:33 -05:00
Ben Marsh
504e281f9e LiveCoding: Expose a Tick() function so that systems that don't use fire EndFrame() callbacks can still tick the live coding module. Also add a -LiveCoding command line argument to force it on.
Also fix an issue where a compile is triggered before the system has been started.

#rb none
#jira

[CL 5340479 by Ben Marsh in 4.22 branch]
2019-03-07 15:20:57 -05:00
Ben Marsh
a4484f70be Fixes for static analysis warnings.
#rb none
#jira

[CL 5307320 by Ben Marsh in 4.22 branch]
2019-03-05 17:51:38 -05:00
Ben Marsh
e1fe0cc030 Integrating live coding feature (aka Live++) into UE4.
Allows fast iteration of C++ changes without restarting the application. To use, select the "Live Coding (Experimental)" mode from the drop down menu next to the editor's compile button, or type "LiveCoding" into the console for a monolithic build. Press Ctrl+Alt+F11 to find changes and compile.

Changes vs standalone Live++ version:

* UBT is used to execute builds. This allows standard UE4 adaptive unity mode, allows us to reuse object files when we do regular builds, supports using any build executor allowed by UBT (XGE, SNDBS, etc..).
* Adding new source files is supported.
* Custom visualizer for FNames is supported via a weakly linked symbol in a static library (Engine/Extras/NatvisHelpers).
* Settings are exposed in the editor's project settings dialog.
* Standalone application has been rewritten as a Slate app ("LiveCodingConsole"). There is an additional option to start the program as hidden, where it will not be visible until Ctrl+Alt+F11 is hit. Similarly, closing the window will hide it instead of closing the application.
* Does not require a standalone licensed version of Live++.

Known issues:

* Does not currently support class layout changes / object reinstancing

#rb none
#fyi Marc.Audy, Stefan.Boberg, Nick.Penwarden
#jira

[CL 5304722 by Ben Marsh in 4.22 branch]
2019-03-05 15:54:02 -05:00