#include Header files that worked for me

Tracking down all of these headers based on the functions we’re using gets exhausting, so I thought I’d save future students the trouble by sharing the header file format that was able to help me compile.

#include "Grabber.h"
#include "Runtime/Core/Public/Math/Vector.h"
#include "Runtime/Core/Public/Math/Rotator.h"
#include "GameFramework/Actor.h"
#include "GameFramework/Controller.h"
#include "GameFramework/PlayerController.h"
#include "Engine/World.h"
1 Like

I didn’t need those

Here what i have on UE4.22.2:
Grabber.cpp:

#include “Grabber.h”
#include “Runtime/Engine/Classes/Engine/World.h”
#include “GameFramework/PlayerController.h”
#include “GameFramework/Actor.h”

Grabber.h

#pragma once
#include “CoreMinimal.h”
#include “Components/ActorComponent.h”
#include “Grabber.generated.h”

thanks

Privacy & Terms