Hey guys,
I’m getting this error in building escape after creating the WorldPosition Actor:
[9/5/2021, 6:17:02 PM] “WorldPosition.cpp” not found in “${workspaceFolder}.vscode\compileCommands_BuildingEscape.json”. ‘includePath’ from c_cpp_properties.json in folder ‘BuildingEscape’ will be used for this file instead.
I created the project in a custom location, and I’m pretty sure it happens because vsCode can’t find the file in the right folder. My issue here is how can I resolve it?
Code for the WorldPosition header file where I get the error below. The same is happening for the #includes in the WorldPosition.cpp file. The workspace itself looks fine, aside from these errors.
#pragma once
#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "WorldPosition.generated.h"
UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
class BUILDINGESCAPE_API UWorldPosition : public UActorComponent
{
GENERATED_BODY()
public:
// Sets default values for this component's properties
UWorldPosition();
protected:
// Called when the game starts
virtual void BeginPlay() override;
public:
// Called every frame
virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
};