I'm following this tutorial on Udemy about learning the basics of Unreal Engine as I start up my CS degree, and I've reached a problem where CoreMinimal.h cannot be found.

This solution was proposed in the Q&A community, however I still could not quite understand it! I'm still learning and would love some help ;)

Here is my code!

// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Pawn.h"
#include "ShipController.generated.h"

class SPACESHOOTER_API AShipController : public APawn

    // Sets default values for this pawn's properties

    // Called when the game starts or when spawned
    virtual void BeginPlay() override;

    // Called every frame
    virtual void Tick(float DeltaTime) override;

    // Called to bind functionality to input
    virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;

Got the same problem a few days back. This is most likely because of visual studio acting up. The normal solution is to replace CoreMinimal.h with Engine.h or EngineMinimal.h with severely increased compile time.

The given solution of the community is to ONLY INCLUDE WHAT YOU USE(IWYU). Meaning that you go to the unreal documentation, find your desired component and include ONLY that component as a header in your files.

What worked for me was going to project folder and search and delete the .suo files in that project(These files can be hidden, so you should check the show hidden files settings from the control panel). Open the project and you should most likely see it working.

If this doesn't work, you can probably ignore it. As long as you can compile and build your project, it doesn't matter whether or not you are getting autocomplete suggestions. Although it is annoying, the problem goes away after sometime, like mine did. Good Luck.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.