Construct object inside widget stopped working

Hi,

I’ve upgraded my project from 4.16 to 4.17 and suddenly my widget blueprints which used “Construct object from class” nodes stopped compiling. Is it not allowed to call those from widget blueprints anymore?

Switching off Compilation Manager and restarting helped. But are there any “side effects”?

It is allowed. Nothing changed there.

Go to your Project Settings and search for Compilation Manager, switch it off and it should compile again.

You may also have some success with right clicking the node and refreshing it manually. Save and close the project, reopen and see if the issue persists. If it does, have a go at switching the blueprint Compilation Manager off.

The manager was introduced in 4.17 and was supposed to speed up compile time for larger projects. And it does in some instances - it works well for projects created in 4.17.

I’ve seen many people report compiling issues precisely like yours (including myself) when transitioning from previous versions, though. It some cases the compile time increased by an order of magnitude…

Side effects are that the compile time may not be as efficient. Admittedly, I’ve yet to run into a tangible comparison. The worst case scenario is that you will not see compile time improvements when moving to 4.17.