Updates to Unreal Course – Unreal Engine 4

Learn Unreal and C++ as part of our epic bundle Build 177 Games: The Complete 2D, 3D and VR Bundle

1. Receiving errors about Box Component?

Add the line below to the top of the cpp file that is producing errors. #include "Components/BoxComponent.h"

This line creates a reference to access components in the BoxComponent.h script. (Unreal Engine 4.15 requires separate includes.)

2. To get UGameplayStatics to compile you need to add:

#include "Kismet/GameplayStatics.h"

3. I’m getting errors in Visual Studio. What do they mean?

Many times you can ignore Visual Studio’s error messages.

If your project builds successfully in Unreal, you are good to go.

Visual Studio can mark things in the source code as an error even though it’s not.

This occurs because when generating new source files, Unreal can get out of sync with Visual Studio.

To sync Visual Studio with Unreal, go File -> Refresh Visual Studio Project.

Thanks to Mammoth Interactive students James and Chris for helping with this question!

Learn Unreal and C++ as part of our epic bundle Build 177 Games: The Complete 2D, 3D and VR Bundle

Author Profile

Alexandra Kropova
Alexandra Kropova
Writer of blog posts and books at Mammoth Interactive. Can also be found posting to Mammoth Interactive's social media.

Leave a Reply