Hi, I’m new to Unreal but have experience programming in C++ which is why I started to follow the tutorials listed [here][1]. However when following this tutorial I’m having problems declaring the spring arm and camera components for the pawn class with the intelisense claiming these are undefined even though I’m following word for word the tutorial. Is there something I’m missing with this?
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Pawn.h"
#include "PawnwithCamera.generated.h"
UCLASS()
class RTS_API APawnwithCamera : public APawn
{
GENERATED_BODY()
public:
// Sets default values for this pawn's properties
APawnwithCamera();
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
public:
// Called every frame
virtual void Tick(float DeltaTime) override;
// Called to bind functionality to input
virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;
protected:
UPROPERTY(EditAnywhere)
USpringArmComponent* cameraSpringArm;
UCameraComponent* camera;
};