ConstructorHelpers::FObjectFinder not working in UE 4.16.1

I need to find an object in my C++ code. Previously I used something like this:

static ConstructorHelpers::FObjectFinder<UParticleSystem> PistolParticles(TEXT("ParticleSystem'/Game/Particles/Weapons/Pistol.Pistol'"));

Did something change in UE 4.16? Do I have to include something extra because of IWYU? Or am I doing something wrong?

You can include “Runtime/CoreUObject/Public/UObject/ConstructorHelpers.h” to make sure Intellisense is working properly. It’s difficult to find information about this, but it may be in a pre compiled header, so you actually don’t need to include it like UWorld.

It worked! Thank you!

Adding on to this, you need to include the constructor helpers in version 4.21, as the following.

#include "ConstructorHelpers.h"

UE will give a compilation error when trying to compile ConstructorHelpers without it.