So I’m using C++ in Unreal Engine to make custom blueprint nodes for the complicated stuff. My problem is, every time I change things like the arguments/return value of my blueprint node in Visual Studio and build, the changes aren’t reflected in the Unreal Editor. I have to manually close Unreal and reopen it.
Is it possible to refresh my Unreal Editor project to make use of my latest C++ code without completely closing it?
Probably a yes, but you do press the compile button, right?
UBT detect if editor is on and if it’s on it should preform hot reload and it should notify it in “Output” tab in VS. If hot reload don’t work it means he can’t swap your module in hot state without reloading whole editor, change of api calls might be indeed the cause. Check what UBT output you should have info there, if you use compile button in editor try building in VS, hot reload works regardless where you run UBT
If I build in Visual Studio, do I still need to press Compile in the Unreal Editor? Is there a faster way to reload the code that was just built in Visual Studio?
No, because both VS and UE4 editor execute same UBT commands to compile the code.
I see now that UE4 will detect and reload code built from Visual Studio. I wasn’t sure that was happening before, but can confirm it does.