Class UObject has no member BeginPlay

Hello,
I was wondering what to make of this error message that appears when I hover over BeginPlay() in MyGrabber.cpp. (different name due to an earlier naming conflict…)

“Class ‘UObject’ has no member ‘BeginPlay’”.

I know that UObject doesn’t have BeginPlay() method, but I’m pretty sure that MyGrabber is inheriting from UActorComponent. Shouldn’t it be able to call Super::BeginPlay() then?

The same thing is happening when I call Super::TickComponent(DeltaTime, TickType, ThisTickFunction) within void UMyGrabber::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction).

It seems like MyGrabber just isn’t inheriting from UActorComponent at all. But in my header file I have:
UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
class BUILDINGESCAPE_API UMyGrabber : public UActorComponent
{ … }

Any ideas?

These are most likely just Intellisense errors that have no bearing on the correctness of your code. Does it build without errors? Yes? Then carry on. :slight_smile:

My instance:

Privacy & Terms